summaryrefslogtreecommitdiff
path: root/block/scsi_ioctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'block/scsi_ioctl.c')
-rw-r--r--block/scsi_ioctl.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/block/scsi_ioctl.c b/block/scsi_ioctl.c
index 260fa80ef575..becbc6f8619a 100644
--- a/block/scsi_ioctl.c
+++ b/block/scsi_ioctl.c
@@ -27,6 +27,9 @@
#include <linux/ratelimit.h>
#include <linux/slab.h>
#include <linux/times.h>
+#include <linux/fd.h>
+#include <linux/raid/md_u.h>
+#include <linux/mtio.h>
#include <asm/uaccess.h>
#include <scsi/scsi.h>
@@ -710,8 +713,17 @@ int scsi_verify_blk_ioctl(struct block_device *bd, unsigned int cmd)
case SG_GET_RESERVED_SIZE:
case SG_SET_RESERVED_SIZE:
case SG_EMULATED_HOST:
+ case BLKFLSBUF:
+ case BLKROSET:
return 0;
case CDROM_GET_CAPABILITY:
+ case CDROM_DRIVE_STATUS:
+ case FDGETPRM:
+ case RAID_VERSION:
+ case MTIOCGET:
+#ifdef CONFIG_COMPAT
+ case 0x801c6d02: /* MTIOCGET32 */
+#endif
/* Keep this until we remove the printk below. udev sends it
* and we do not want to spam dmesg about it. CD-ROMs do
* not have partitions, so we get here only for disks.