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

CA-173498: Fix match_targetIQN in iscsilib #263

Closed
wants to merge 1 commit into from

Conversation

siddharthv
Copy link
Contributor

The current implementation uses re to match IQNs from iscsiadm's
output. This would break in cases where the iqn's are substrings of each
other.

This patch extracts the iqn from the output of iscsiadm and compares it
with the targetIQN.

Signed-off-by: Siddharth Vinothkumar siddharth.vinothkumar@citrix.com

The current implementation use `re` to match IQNs from iscsiadm's
output. This would break in cases where the iqn's are substrings of each
other.

This patch extracts the iqn from the output of iscsiadm and compares it
with the targetIQN.

Signed-off-by: Siddharth Vinothkumar <siddharth.vinothkumar@citrix.com>
andrey-podko pushed a commit to andrey-podko/sm that referenced this pull request Aug 16, 2022
The current implementation use `re` to match IQNs from iscsiadm's
output. This would break in cases where the iqn's are substrings of each
other.

This patch extracts the iqn from the output of iscsiadm and compares it
with the targetIQN.

Reviewed-by: Chandrika Srinivasan <chandrika.srinivasan@citrix.com>

GitHub: closes xapi-project#263
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants