SCSI Read Capacity Command

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:

    If you read only the best, you will have no need of reading the other books, because the latter are nothing but a rehash of the best and the oldest. To read Shakespeare, Plato, Dante, Milton, Spenser, Chaucer, and their compeers in prose, is to read in condensed form what all others have diluted.
    Anna C. Brackett (1836–1911)

    Where mass opinion dominates the government, there is a morbid derangement of the true functions of power. The derangement brings about the enfeeblement, verging on paralysis, of the capacity to govern. This breakdown in the constitutional order is the cause of the precipitate and catastrophic decline of Western society. It may, if it cannot be arrested and reversed, bring about the fall of the West.
    Walter Lippmann (1889–1974)

    Children from humble families must be taught how to command just as other children must be taught how to obey.
    Friedrich Nietzsche (1844–1900)