diff options
author | Fam Zheng | 2015-09-06 17:05:42 +0800 |
---|---|---|
committer | Michael S. Tsirkin | 2015-09-08 13:31:07 +0300 |
commit | 5fa3142da14b162f30e4781ff17e1926c47f28fb (patch) | |
tree | e86e2ca9704e72e2b56abdb08d0c784f67db1489 /drivers | |
parent | 38c4ab8e48ab153dee461e10e81256720b70a0b3 (diff) |
virtio-blk: Allow extended partitions
This will allow up to DISK_MAX_PARTS (256) partitions, with for example
GPT in the guest. Otherwise, the partition scan code will only discover
the first 15 partitions.
Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/block/virtio_blk.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c index ea2c17c66dfb..e93899cc6f60 100644 --- a/drivers/block/virtio_blk.c +++ b/drivers/block/virtio_blk.c @@ -656,6 +656,7 @@ static int virtblk_probe(struct virtio_device *vdev) vblk->disk->private_data = vblk; vblk->disk->fops = &virtblk_fops; vblk->disk->driverfs_dev = &vdev->dev; + vblk->disk->flags |= GENHD_FL_EXT_DEVT; vblk->index = index; /* configure queue flush support */ |