Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[SCSI] libosd: osd_sense: OSD_CFO_PERMISSIONS

Add one more important cdb_field_offset that can be returned with
scsi_invalid_field_in_cdb. It is the offset of the permissions_bit_mask
field in the capabilities structure.

Interestingly, the offset is the same for V1/V2

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>

authored by

Boaz Harrosh and committed by
James Bottomley
c7d2dc2a d531b379

+3
+3
include/scsi/osd_sense.h
··· 255 255 OSD_CFO_STARTING_BYTE = OSD_CDB_OFFSET(v2.start_address), 256 256 OSD_CFO_PARTITION_ID = OSD_CDB_OFFSET(partition), 257 257 OSD_CFO_OBJECT_ID = OSD_CDB_OFFSET(object), 258 + OSD_CFO_PERMISSIONS = sizeof(struct osd_cdb_head) + 259 + offsetof(struct osd_capability_head, 260 + permissions_bit_mask), 258 261 }; 259 262 260 263 #endif /* ndef __OSD_SENSE_H__ */