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:

    For I could not read or speak and on the long nights I could not turn the moon off or count the lights of cars across the ceiling.
    Anne Sexton (1928–1974)

    Rice and peas fit into that category of dishes where two ordinary foods, combined together, ignite a pleasure far beyond the capacity of either of its parts alone. Like rhubarb and strawberries, apple pie and cheese, roast pork and sage, the two tastes and textures meld together into the sort of subtle transcendental oneness that we once fantasized would be our experience when we finally found the ideal mate.
    John Thorne, U.S. cookbook writer. Simple Cooking, “Rice and Peas: A Preface with Recipes,” Viking Penguin (1987)

    An actor must communicate his author’s given message—comedy, tragedy, serio- comedy; then comes his unique moment, as he is confronted by the looked-for, yet at times unexpected, reaction of the audience. This split second is his; he is in command of his medium; the effect vanishes into thin air; but that moment has a power all its own and, like power in any form, is stimulating and alluring.
    Eleanor Robson Belmont (1878–1979)