]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
[SCSI] libosd: osd_sense: OSD_CFO_PERMISSIONS
authorBoaz Harrosh <bharrosh@panasas.com>
Mon, 16 Nov 2009 18:41:03 +0000 (20:41 +0200)
committerJames Bottomley <James.Bottomley@suse.de>
Fri, 4 Dec 2009 18:01:44 +0000 (12:01 -0600)
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>
include/scsi/osd_sense.h

index ff9b33c773c70e7f92a062783c5eadc6f6da019e..91db543a550258ed256332104b77cd738ee382d5 100644 (file)
@@ -255,6 +255,9 @@ enum osdv2_cdb_field_offset {
        OSD_CFO_STARTING_BYTE   = OSD_CDB_OFFSET(v2.start_address),
        OSD_CFO_PARTITION_ID    = OSD_CDB_OFFSET(partition),
        OSD_CFO_OBJECT_ID       = OSD_CDB_OFFSET(object),
+       OSD_CFO_PERMISSIONS     = sizeof(struct osd_cdb_head) +
+                                       offsetof(struct osd_capability_head,
+                                                permissions_bit_mask),
 };
 
 #endif /* ndef __OSD_SENSE_H__ */