The SCSI Read Capacity command is used to obtain data capacity information from a target device.
The command descriptor block (CDB) structure is:
| bit→ ↓byte |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|
| 0 | Operation code = 25h | |||||||
| 1 | LUN | Reserved | RelAdr | |||||
| 2 | LBA (MSB) LBA (LSB) |
|||||||
| 3 | ||||||||
| 4 | ||||||||
| 5 | ||||||||
| 6 | Reserved | |||||||
| 7 | Reserved | |||||||
| 8 | Reserved | PMI | ||||||
| 9 | Control | |||||||
The special control fields in the CDB have the following meaning:
- RelAdr - indicates that the logical block address (LBA) value is relative (only used with linked commands).
- PMI - partial medium indicator:
- 0 - return value for the last LBA
- 1 - return value for the last LBA after which a substantial delay in data transfer will be encountered (e.g., the current track or cylinder)
The target will return capacity data structured as follows:
| bit→ ↓byte |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|
| 0–3 | Returned LBA | |||||||
| 4–7 | Block length in bytes | |||||||
Famous quotes containing the words read, capacity and/or command:
“We read poetry because the poets, like ourselves, have been haunted by the inescapable tyranny of time and death; have suffered the pain of loss, and the more wearing, continuous pain of frustration and failure; and have had moods of unlooked-for release and peace. They have known and watched in themselves and others.”
—Elizabeth Drew (18871965)
“There seems almost a general wish of descrying the capacity and undervaluing the labour of the novelist, and of slighting the performances which have only genius, wit, and taste to recommend them.”
—Jane Austen (17751817)
“Diamonds may have been a girls best friend in an era when a womans only hope of having a high family income was to marry a man who was well-off, but today, marketable skills that will enable a woman to command a good income over her lifetime are a better investment.”
—Grace Baruch (20th century)