Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
folkertvanheusden opened this issue Oct 9, 2024 · 1 comment

Comments

@folkertvanheusden
Copy link
Contributor

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

@sahlberg
Copy link
Owner

sahlberg commented Jan 3, 2025

I can not reproduce the failure. I have a 4k thin provisioned LUN and the test passes.
Those three arguments in iscsi should not affect reading from the device. They only control the maximum size of each blob that is sent.
A read that is bigger than this will still work, it just needs multiple roundtrips in order to get all the data across but that should be
transparent to the caller of READ10.

How does it fail? and how big is your LUN and what is the tarrget?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants