]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite8e8450409438b0cf4c0ce5dab56261748344c99
tree96bdeadd9af5b16476186df0ea8056175bc16cbb
parent27a4c5603dc52bdf62340b3d5fcadf69d5e92795
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