diff options
author | Jeremy Katz <katzj@redhat.com> | 2008-03-02 23:00:15 +0100 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2008-03-17 12:58:15 +0100 |
commit | c483934670d31e064e18967bb679c1079b54ea72 (patch) | |
tree | 5f8655fa105cd149f79ca42ef8c6579c2f1940c3 /drivers/block | |
parent | virtio: Use spin_lock_irqsave/restore for virtio-pci (diff) | |
download | linux-c483934670d31e064e18967bb679c1079b54ea72.tar.xz linux-c483934670d31e064e18967bb679c1079b54ea72.zip |
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>
Diffstat (limited to 'drivers/block')
-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 3b1a68d6eddb..0cfbe8c594a5 100644 --- a/drivers/block/virtio_blk.c +++ b/drivers/block/virtio_blk.c @@ -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 */ |