scst_lib: Allow REPORT LUNS to operate on an unsupported LUN #223
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Initiators will attempt to send LUN 0 INQUIRY and REPORT LUNS commands when connecting to a target. If a SCST target is configured with LUNs e.g. 100, 101 (i.e. no LUN 0) then disks would NOT surface when
iscsiadm
is used to login on Linux. This PR is to modify SCST behavior to rectify this.scst_set_lun_not_supported_report_luns
to handle the case when REPORT LUNs is sent to an unsupported LUN.scst_set_lun_not_supported_inquiry
report a valid vendor identification string to promote better initiator behavior.Tested with SCST running on:
Tested with clients:
open-iscsi/open-iscsi#175 is not wrt SCST, but offers some interesting insight nonetheless. Specifically:
scst_set_lun_not_supported_inquiry
.scst_set_lun_not_supported_report_luns
The code in
scst_set_lun_not_supported_report_luns
was inspired byscst_set_lun_not_supported_inquiry
andscst_report_luns_local
.