X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=block%2Fscsi_ioctl.c;h=9f19e4056f82acc180bbc351e7fa5da7bf89ed9a;hb=76da92ce7f16796ac1ad785af565d04c9f85b900;hp=edcfff974527796a9432b0c262f3961a70e4c2d7;hpb=275327851e5c3e71bc73eaee7f065f22b2d1fe6c;p=mirror_ubuntu-bionic-kernel.git diff --git a/block/scsi_ioctl.c b/block/scsi_ioctl.c index edcfff974527..9f19e4056f82 100644 --- a/block/scsi_ioctl.c +++ b/block/scsi_ioctl.c @@ -29,6 +29,9 @@ #include #include #include +#include +#include +#include #include #include @@ -706,8 +709,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.