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:

    How dare I read Washington’s campaigns, when I have not answered the letters of my own correspondents? Is not that a just objection to much of our reading? It is a pusillanimous desertion of our work to gaze after our neighbours. It is peeping.
    Ralph Waldo Emerson (1803–1882)

    Lords and Commoners of England, consider what nation it is whereof ye are, and whereof ye are the governors; a nation not slow and dull, but of a quick, ingenious and piercing spirit, acute to invent, subtle and sinewy to discourse, not beneath the reach of any point the highest that human capacity can soar to.
    John Milton (1608–1674)

    There are confessable agonies, sufferings of which one can positively be proud. Of bereavement, of parting, of the sense of sin and the fear of death the poets have eloquently spoken. They command the world’s sympathy. But there are also discreditable anguishes, no less excruciating than the others, but of which the sufferer dare not, cannot speak. The anguish of thwarted desire, for example.
    Aldous Huxley (1894–1963)