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

Vladislav Bolkhovitin
2010-06-23T17:08:51Z

Chris Worley, on 06/22/2010 08:06 PM wrote:
> 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?

I'm not sure what you mean here under "tell" and "pass upstream".
Generally, such problems are outside of SCST scope and responsibilities.
With vdisk kernel I/O stack should make sure you use correct alignment
accessing your backend drive and you can always choose your own >512b
block size for all vdisk devices.

Vlad