virtio_blk: Remove VBID ioctl
authorRyan Harper <ryanh@us.ibm.com>
Thu, 24 Jun 2010 03:19:58 +0000 (22:19 -0500)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 5 Aug 2010 03:35:31 +0000 (13:05 +0930)
With the availablility of a sysfs device attribute for examining disk serial
numbers the ioctl is no longer needed.  The user-space changes for this aren't
upstream yet so we don't have any users to worry about.

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/block/virtio_blk.c

index 7a93b3f688496c7baac1b50d570b739612191a79..23b7c48df843c88ffb00f383c4110a86b5efffdd 100644 (file)
@@ -225,16 +225,6 @@ static int virtblk_ioctl(struct block_device *bdev, fmode_t mode,
        struct gendisk *disk = bdev->bd_disk;
        struct virtio_blk *vblk = disk->private_data;
 
-       if (cmd == 0x56424944) { /* 'VBID' */
-               void __user *usr_data = (void __user *)data;
-               char id_str[VIRTIO_BLK_ID_BYTES];
-               int err;
-
-               err = virtblk_get_id(disk, id_str);
-               if (!err && copy_to_user(usr_data, id_str, VIRTIO_BLK_ID_BYTES))
-                       err = -EFAULT;
-               return err;
-       }
        /*
         * Only allow the generic SCSI ioctls if the host can support it.
         */