Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c4839346 authored by Jeremy Katz's avatar Jeremy Katz Committed by Rusty Russell
Browse files

virtio: Fix sysfs bits to have proper block symlink



Fix up so that the virtio_blk devices in sysfs link correctly to their
block device.  This then allows them to be detected by hal, etc

Signed-off-by: default avatarJeremy Katz <katzj@redhat.com>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 27ebe308
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -238,6 +238,7 @@ static int virtblk_probe(struct virtio_device *vdev)
	vblk->disk->first_minor = index_to_minor(index);
	vblk->disk->private_data = vblk;
	vblk->disk->fops = &virtblk_fops;
	vblk->disk->driverfs_dev = &vdev->dev;
	index++;

	/* If barriers are supported, tell block layer that queue is ordered */