forked from Minki/linux
Staging: hv: fix sysfs symlink on hv block device
The block device does not create the proper symlink in sysfs because we forgot to set up the gendisk structure properly. This patch fixes the issue. Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com> Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: stable <stable@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
fec2be706d
commit
268eff909a
@ -368,6 +368,7 @@ static int blkvsc_probe(struct device *device)
|
||||
blkdev->gd->first_minor = 0;
|
||||
blkdev->gd->fops = &block_ops;
|
||||
blkdev->gd->private_data = blkdev;
|
||||
blkdev->gd->driverfs_dev = &(blkdev->device_ctx->device);
|
||||
sprintf(blkdev->gd->disk_name, "hd%c", 'a' + devnum);
|
||||
|
||||
blkvsc_do_inquiry(blkdev);
|
||||
|
Loading…
Reference in New Issue
Block a user