libiscsi icon indicating copy to clipboard operation
libiscsi copied to clipboard

SCSI.WriteSame10.Unmap fails with devices with 4kB sectors (or bigger)

Open folkertvanheusden opened this issue 4 months ago • 0 comments

At some point, SCSI.WriteSame10.Unmap wants to read 65 sectors. With 4 kB sectors, that is 266240 bytes. In lib/init.c the following parameters are set:

       iscsi->max_burst_length                       = 262144;
       iscsi->first_burst_length                     = 262144;
       iscsi->initiator_max_recv_data_segment_length = 262144;

Now 266240 > 262144 and thus the test will fail not because of the unmap handling but because of the 4kB sector size.

For me I worked around this by setting these parameters to 524288 but ideally these parameters can be set via a library-call.

regards

folkertvanheusden avatar Oct 09 '24 23:10 folkertvanheusden