]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - block/scsi_ioctl.c
Revert "UBUNTU: SAUCE: aufs -- Convert to use xattr handlers"
[mirror_ubuntu-zesty-kernel.git] / block / scsi_ioctl.c
index c6fee7437be44573ade684d064e161954485301a..80cbf534e084566a43b956a5c286416835d03b11 100644 (file)
 #include <linux/slab.h>
 #include <linux/times.h>
 #include <linux/uio.h>
-#include <asm/uaccess.h>
+#include <linux/uaccess.h>
+#include <linux/fd.h>
+#include <linux/raid/md_u.h>
+#include <linux/mtio.h>
 
 #include <scsi/scsi.h>
 #include <scsi/scsi_ioctl.h>
@@ -708,8 +711,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.