summaryrefslogtreecommitdiff
path: root/drivers/scsi/sd.h
diff options
context:
space:
mode:
authorMartin K. Petersen <martin.petersen@oracle.com>2009-05-23 11:43:37 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2009-06-21 10:52:37 -0500
commitea09bcc9c298d3057270abd78a973fc678d55c4c (patch)
tree35764eeb8325f03c29b2da115290c06c9f8303ab /drivers/scsi/sd.h
parentc277331d5fbaae5772ed19862feefa91f4e477d3 (diff)
downloadlwn-ea09bcc9c298d3057270abd78a973fc678d55c4c.tar.gz
lwn-ea09bcc9c298d3057270abd78a973fc678d55c4c.zip
sd: Physical block size and alignment support
Extract physical block size and lowest aligned LBA from READ CAPACITY(16) response and adjust queue parameters. Report physical block size and alignment when applicable. [jejb: fix up trailing whitespace] Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/sd.h')
-rw-r--r--drivers/scsi/sd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/sd.h b/drivers/scsi/sd.h
index 708778cf5f06..8474b5bad3fe 100644
--- a/drivers/scsi/sd.h
+++ b/drivers/scsi/sd.h
@@ -45,6 +45,7 @@ struct scsi_disk {
unsigned int openers; /* protected by BKL for now, yuck */
sector_t capacity; /* size in 512-byte sectors */
u32 index;
+ unsigned short hw_sector_size;
u8 media_present;
u8 write_prot;
u8 protection_type;/* Data Integrity Field */