[lvc-project] [PATCH 1/2] scsi: define minimum CDB size
Dmitry Antipov
dmantipov at yandex.ru
Thu Oct 29 12:26:23 MSK 2026
According to SPC3, fixed length CDB can't be shorter
than 6 bytes, so define the convenient SCSI_MIN_CDB_SIZE.
Signed-off-by: Dmitry Antipov <dmantipov at yandex.ru>
---
include/scsi/scsi_proto.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/scsi/scsi_proto.h b/include/scsi/scsi_proto.h
index 9c7d31aa6bae..c7d2c38be4b2 100644
--- a/include/scsi/scsi_proto.h
+++ b/include/scsi/scsi_proto.h
@@ -187,6 +187,7 @@
* SCSI command lengths
*/
+#define SCSI_MIN_CDB_SIZE 6
#define SCSI_MAX_VARLEN_CDB_SIZE 260
/* defined in T10 SCSI Primary Commands-2 (SPC2) */
--
2.56.0
More information about the lvc-project
mailing list