virtio_blk: check for hardsector size from host
authorChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 29 May 2008 09:08:26 +0000 (11:08 +0200)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 25 Jul 2008 02:06:05 +0000 (12:06 +1000)
commit066f4d82a67f621ddd547bfa4b9c94631d8457b0
tree96bdeadd9af5b16476186df0ea8056175bc16cbb
parente962fa660d391fc9b90988e6538c94c858c099f9
virtio_blk: check for hardsector size from host

Currently virtio_blk assumes a 512 byte hard sector size. This can cause
trouble / performance issues if the backing has a different block size
(like a file on an ext3 file system formatted with 4k block size or a dasd).

Lets add a feature flag that tells the guest to use a different hard sector
size than 512 byte.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/block/virtio_blk.c
include/linux/virtio_blk.h