Hi Ranjan, On Mon, 2014-03-17 at 12:18 +0000, Ranjan Kumar2 wrote: > Hi nab, > > I forgot to mention that i'm using Linux kernel 3.8.6 and FileIO. > > Regards, > Ranjan > > On Mon, 2014-03-17 at 13:51 +0530, Ranjan S wrote: > > Hi nab, > > > > I am trying to create a iSCSI drive on top of lvm2 snapshot. but my > > drive format operation fails and gives an error > > > > "SCSI OP 28h with too big sectors 16 exceeds backend hw_max_sectors: 8" > > > > my device max sector size is 8. But I am sure this worked fine with > > older generations of iSCSI targets. > > > > It would be great if you could help me or guide me to patch which can > > solve the issue. > > > > So there are a few patches that v3.8.y needs in order to avoid this issue. The first from v3.9.y is: target: Use FD_MAX_SECTORS/FD_BLOCKSIZE for blockdevs using fileio https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/drivers/target/?h=linux-3.9.y&id=8cb3a88522df20a6d77934260040facfc0449f0e and the second from v3.10.y is: target/file: Update hw_max_sectors based on current block_size https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/drivers/target/?h=linux-3.10.y&id=480da400c39d5c4398765623c7bb007a359a059f I'd also recommend applying the following from v3.9.y: target/file: Fix off-by-one READ_CAPACITY bug for !S_ISBLK export https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/drivers/target/?h=linux-3.9.y&id=0813b7c39d5d046feb9e7a632abd09aaafae056e --nab -- To unsubscribe from this list: send the line "unsubscribe target-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html