From: Boaz Harrosh Date: Mon, 16 Nov 2009 18:41:03 +0000 (+0200) Subject: [SCSI] libosd: osd_sense: OSD_CFO_PERMISSIONS X-Git-Tag: upstream/snapshot3+hdmi~16405^2~46 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c7d2dc2a204fa37bdf607d4d062dfd14e392aaf1;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git [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 Signed-off-by: James Bottomley --- diff --git a/include/scsi/osd_sense.h b/include/scsi/osd_sense.h index ff9b33c..91db543 100644 --- a/include/scsi/osd_sense.h +++ b/include/scsi/osd_sense.h @@ -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__ */