]> git.baikalelectronics.ru Git - kernel.git/commit
virtio_blk: provide getgeo
authorChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 23 Jan 2008 16:56:50 +0000 (17:56 +0100)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 4 Feb 2008 12:50:09 +0000 (23:50 +1100)
commitd9e0a3d9a2c83386cf33ed3293f92971aa310b56
tree733f368d62f5e1367550380d50c2e6d98e498660
parent2df90a1cc13b579196edff87a1b869b4ea1c16cc
virtio_blk: provide getgeo

Rusty,

I currently try to make my guest boot from an virtio root device
without having an external kernel. Some of the tools that I tried
expect HDIO_GETGEO to work. The most interesting value is likely
the geo.start value to get the offset of a partition. This value
is filled by block/ioctl.c if fops->getgeo is set. This patch also
fills in some standard values for heads, sectors and cylinders.

Makes sense?

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