mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 19:07:52 +00:00
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: Jeremy Katz <katzj@redhat.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
27ebe308af
commit
c483934670
1 changed files with 1 additions and 0 deletions
|
@ -238,6 +238,7 @@ static int virtblk_probe(struct virtio_device *vdev)
|
||||||
vblk->disk->first_minor = index_to_minor(index);
|
vblk->disk->first_minor = index_to_minor(index);
|
||||||
vblk->disk->private_data = vblk;
|
vblk->disk->private_data = vblk;
|
||||||
vblk->disk->fops = &virtblk_fops;
|
vblk->disk->fops = &virtblk_fops;
|
||||||
|
vblk->disk->driverfs_dev = &vdev->dev;
|
||||||
index++;
|
index++;
|
||||||
|
|
||||||
/* If barriers are supported, tell block layer that queue is ordered */
|
/* If barriers are supported, tell block layer that queue is ordered */
|
||||||
|
|
Loading…
Reference in a new issue