Skip to content

Commit

Permalink
virtio: Fix sysfs bits to have proper block symlink
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeremy Katz authored and Rusty Russell committed Mar 17, 2008
1 parent 27ebe30 commit c483934
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/block/virtio_blk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit c483934

Please sign in to comment.