How do I get scst_vdisk/IB_SRP(T) to properly handle drives w/ 4KB sectors?

Chris Worley
2010-06-22T16:06:45Z

When given an LBA w/ a bad boundary, the drive returns an error and
the target side says:

dev_vdisk: ***ERROR***: cmd ffff810196f58b70 returned error -22

... and the initiator:

sd 8:0:0:0: SCSI error: return code = 0x08000002
sdc: Current: sense key: Medium Error
Add. Sense: Unrecovered read error

Is there a way to tell scst that this drive requires 4KB block sizes,
and pass that upstream?

Thanks,

Chris