READ POSITION | 6.Command Specification |
6.16.READ POSITION 34h
Bit | 7 | 6 | 5 | 4 |
| 3 | 2 |
| 1 |
| 0 |
Byte |
|
|
|
|
|
|
|
|
|
|
|
0 |
|
|
| Operation | Code (34h) |
|
|
|
|
| |
1 |
|
| Reserved |
|
|
| TCLP |
| LONG |
| BT |
2 |
|
|
|
| Reserved |
|
|
|
|
| |
3 |
|
|
|
| Reserved |
|
|
|
|
| |
4 |
|
|
|
| Reserved |
|
|
|
|
| |
5 |
|
|
|
| Reserved |
|
|
|
|
| |
6 |
|
|
|
| Reserved |
|
|
|
|
| |
7 |
|
|
|
| Reserved |
|
|
|
|
| |
8 |
|
|
|
| Reserved |
|
|
|
|
| |
9 |
|
|
|
| Control |
|
|
|
|
|
The READ POSITION command reports the current position of the logical unit. No medium movement will occur as a result of the command.
TCLP: The Total Current Logical Position (TCLP) bit of ONE indicates the drive will return data specifying the partition, file, and set number with the current logical position. The TCLP bit of ZERO indicates the drive will return data specifying the first and last block location with the number of bytes and blocks in buffer.
LONG: The Long Format (LONG) bit of ONE indicates the drive will return 32 bytes of data. The LONG bit of ZERO indicates the drive will return 20 bytes of data.
The LONG bit and the TCLP bit will be equal. If the LONG and TCLP bits are not equal, or if both the LONG and the Block Address Type (BT) bits are ONE, the command is rejected with a CHECK CONDITION status and an ILLEGAL REQUEST sense key set.
BT: The Block Address type (BT) bit controls the content of the short format data. The BT bit of one requests the drive to return its current First Block Location will include data block only. The BT bit of ZERO requests the drive to return the First Block Location are a SCSI Logical Block Address (data blocks, Filemarks and Save Setmarks are counted.)
Table
Bit | 7 | 6 | 5 |
| 4 |
| 3 |
| 2 | 1 |
| 0 |
Byte |
|
|
|
|
|
|
|
|
|
|
|
|
0 | BOP | EOP |
|
| Reserved |
|
|
| BPU |
| Reserved | |
1 |
|
|
|
| Partition Number (0) |
|
|
|
|
| ||
2 |
|
|
|
| Reserved |
|
|
|
|
|
| |
3 |
|
|
|
| Reserved |
|
|
|
|
|
| |
4 | (MSB) |
|
|
| First Block Location |
|
|
|
| |||
7 |
|
|
|
|
|
|
|
|
|
|
| (LSB) |
8 | (MSB) |
|
|
| Last Block Location |
|
|
|
| |||
11 |
|
|
|
|
|
|
|
|
|
|
| (LSB) |
12 |
|
|
|
| Reserved |
|
|
|
|
|
| |
13 | (MSB) |
|
| Number of Blocks in Buffer |
|
|
|
| ||||
15 |
|
|
|
|
|
|
|
|
|
|
| (LSB) |
16 | (MSB) |
| Number of Bytes in Buffer | (00 00 00 00h) |
|
|
| |||||
19 |
|
|
|
|
|
|
|
|
|
|
| (LSB) |
BOP: A Beginning Of Partition (BOP) bit of one indicates that the logical unit is at the
EOP: An End Of Partition (EOP) bit of one indicates that the logical unit is positioned between
SONY |