6.Command Specification | LOG SELECT |
The purpose of the Log Select command is to allow the initiator to modify and initialize parameters within the logs supported by the device. However in this case, access to individual parameters within log pages is not supported and so initiator is restricted to resetting complete log pages only.
To achieve this, during the DATA OUT phase the initiator must send the log page header of the page to be cleared, with the Page Length field set to ZERO. The following pages can be cleared in this manner.
| Table |
|
|
Page Code | Description |
02h | Write Error Counter Page |
03h | Read Error Counter Page |
07h | Last n Error Events Page |
2Eh | Tape Alert Log Page |
34h | Write Frame Error Counter Page |
35h | Read Frame Error Counter Page |
39h | Data Compression Transfer Log Page |
3Eh | MIC Variable Length Information Parameter Code |
Note: Due to the way in which logs are stored and updated, clearing log page 2 will result in log page 3 also being cleared and vice versa.
Because of this method of clearing the log pages, the Parameter List Length field must be an integer multiple of the Log Page Header length (i.e. 4). Otherwise the command will be terminated with a CHECK CONDITION status with the sense key set to ILLEGAL REQUEST and an ASC of INVALID FIELD IN CDB.
If multiple pages are sent during the DATA OUT phase then they must be sent in ascending order according to page code. Otherwise the command will terminate with a CHECK CONDITION status with the sense key set to ILLEGAL REQUEST and an ASC of ILLEGAL FIELD IN PARAMETER LIST. The same status will be returned if an unsupported Page Code appears in any header or if the specified page cannot cleared.
Other Log Select Page Codes have been defined for MIC support. MIC Variable Length Information Page is assigned as 3Eh. Please refer the description for “Log Sense Page 3Eh” and Appendix (MIC) on this Product Specification Manual. User Volume Note and User Partition Note are automatically created with indicated size, if it is not exist. User Volume Note size and User Partition Note size must be the same size with current one, if it is already exist. Just only supersede operation is allowed.
Table 6-7: MIC Variable Length Information Parameter Codes
Parameter Code | Description | Length |
0001h | User Volume Note | |
0002h | User Partition Note for Partition 0 |
1.See Important Note for Log Sense Page 3Eh.
2.If there is no User Volume Note and there is no User Partition Note, User Volume Note will be created for the specific Length if it does not exceed the Available Free Byte Count returned in Log Sense Page 3Dh Parameter Code 0003h. If there is existing User Volume Note and User Partition Note data the new User Volume Note data must be exactly the same size as the existing User Volume Note data, otherwise a Check Condition status will be returned and no new data will be written to MIC. If there is existing User Volume Note data but no User Partition Note data then User Volume Note length may be equal to the Available Free Byte Count.
3.There is no format to writing user data to MIC. The application is free to define MIC data for its use.
SONY |