]> git.baikalelectronics.ru Git - kernel.git/commit
libata: Report disk alignment and physical block size
authorMartin K. Petersen <martin.petersen@oracle.com>
Fri, 15 May 2009 04:40:34 +0000 (00:40 -0400)
committerJeff Garzik <jgarzik@redhat.com>
Fri, 15 May 2009 18:14:22 +0000 (14:14 -0400)
commit2d61931331503a28b16a9bd483aa4518dd78df64
treef67dce998de1d28da9a0aea898208d512728ef1e
parent8ca0411cf7f4040b4bbac9893be6b60b70afb9cd
libata: Report disk alignment and physical block size

For disks with 4KB sectors, report the correct block size and alignment
when filling out the READ CAPACITY(16) response.

This patch is based upon code from Matthew Wilcox' 4KB ATA tree.  I
fixed the bug I reported a while back caused by ATA and SCSI using
different approaches to describing the alignment.

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/libata-scsi.c