Command descriptor block (CDB)
A command descriptor block (CDB) is the byte-encoded description of a SCSI command.
Command and data: The CDB identifies a command and is distinct from its associated data payload. Common fixed-length formats are 6, 10, 12 and 16 bytes; the operation and command set determine the layout. [1] [2]
Interpretation: Decode the command using the applicable device command set, such as SBC for block devices or SSC for sequential-access devices. A shared SCSI transport does not make their operations interchangeable. [3]
Transfer counts: For direct-access block devices, legacy READ(6) uses a one-byte transfer-length field where zero specifies 256 logical blocks. READ(10) uses a two-byte block count where zero requests no logical blocks. These are requested block counts, not CDB byte lengths or proof of completed transfer. Linux v6.12 decodes the two forms accordingly. [4] [5]
Measurement: The sg_read zero-block mode times command overhead using READ(10), READ(12) or READ(16). Its completed-command rate does not establish a user-data byte rate; READ(6) does not share that zero-block interpretation. [6]
Relations
Citations
- SNIA dictionary: Command Descriptor Block
- Linux SCSI Interfaces Guide: protocol versus bus and subsystem layers
- T10: SCSI standards architecture and command families
- Seagate SCSI Commands Reference Manual, Rev. L (2020), sections 3.17-3.18
- Linux v6.12: scsi_trace_rw6 and scsi_trace_rw10 transfer-count decoding
- sg3_utils v1.48: sg_read(8), zero-block command-overhead timing
Sources & caveats
- The listed fixed lengths are examples, not an exhaustive limit on SCSI command formats.
- The zero-count contrast concerns direct-access block commands, not tape READ(6). The cited manual labels block READ(6) obsolete; support is not implied for every device. [4]