Add Context.lun_reset() to expose iscsi_task_mgmt_lun_reset_sync#11
Merged
Conversation
8a95274 to
9a88351
Compare
Bump black, flake8 and reuse
9a88351 to
ec47f09
Compare
Contributor
Author
|
Tested by issuing a LUN RESET against a live iSCSI target and confirming the Logical Unit Reset PDU on the wire via tcpdump. |
rosjat
approved these changes
May 2, 2026
Contributor
|
@bmeagherix if you feel confident just merge the change. Im not sure if @Flameeyes will review any time soon |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Expose
iscsi_task_mgmt_lun_reset_syncasContext.lun_reset(lun).iscsi_task_mgmt_lun_reset_synchas been part of libiscsi for more than a decade. The new method follows the same error-handling convention as the rest of theContextAPI: returnsNoneon success, raisesRuntimeErroron failure.