sending ioctl warnings for a partition

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



My platform is based on linux v3.2.2 + Debian stable zfs-fuse-0.6.9-1
application

When I use a dedicated scsi partition for zfs-fuse I see the following
warnings at kernel level:

kernel: [   12.881949] zfs-fuse: sending ioctl 2285 to a partition!

The SG_IO is blocked inside scsi_verify_blk_ioctl() function. In order to permit
SG_IO for a partition I suggest to add it in the white list:

--- a/block/scsi_ioctl.c	2012-02-01 11:10:41.000000000 +0100
+++ b/block/scsi_ioctl.c	2012-02-01 11:31:09.000000000 +0100
@@ -710,6 +710,7 @@
 	case SG_GET_RESERVED_SIZE:
 	case SG_SET_RESERVED_SIZE:
 	case SG_EMULATED_HOST:
+	case SG_IO:
 		return 0;
 	case CDROM_GET_CAPABILITY:
 		/* Keep this until we remove the printk below.  udev sends it

Best regards,
   Tullio
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux