• Christian Borntraeger's avatar
    virtio_blk: provide getgeo · 135da0b0
    Christian Borntraeger authored
    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: default avatarChristian Borntraeger <borntraeger@de.ibm.com>
    Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
    135da0b0
virtio_blk.c 7.38 KB