Fix iscsiadm handling of port argument when it is not the default iscsi
value of 3260
This commit is contained in:
parent
8f36c17ddd
commit
89d3b21491
13
iscsi-initiator-utils-fix-non-def-port.patch
Normal file
13
iscsi-initiator-utils-fix-non-def-port.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/usr/iscsiadm.c b/usr/iscsiadm.c
|
||||
index 2d9f1a2..87dd4a0 100644
|
||||
--- a/usr/iscsiadm.c
|
||||
+++ b/usr/iscsiadm.c
|
||||
@@ -1646,7 +1646,7 @@ main(int argc, char **argv)
|
||||
goto free_ifaces;
|
||||
}
|
||||
|
||||
- if (mode != MODE_DISCOVERY && ip)
|
||||
+ if (mode != MODE_DISCOVERY && ip && port != -1)
|
||||
port = ISCSI_LISTEN_PORT;
|
||||
|
||||
switch (mode) {
|
@ -3,7 +3,7 @@
|
||||
Summary: iSCSI daemon and utility programs
|
||||
Name: iscsi-initiator-utils
|
||||
Version: 6.2.0.872
|
||||
Release: 4%{?dist}
|
||||
Release: 5%{?dist}
|
||||
Source0: http://people.redhat.com/mchristi/iscsi/rhel6.0/source/open-iscsi-2.0-872-rc1-bnx2i.tar.gz
|
||||
Source1: iscsid.init
|
||||
Source2: iscsidevs.init
|
||||
@ -28,7 +28,8 @@ Patch7: iscsi-initiator-utils-fix-zero-MaxXmitDataSegmentLength.patch
|
||||
Patch8: iscsi-initiator-utils-be2iscsi-fix-init-r2t.patch
|
||||
# do not send informational msgs to stderr
|
||||
Patch9: iscsi-initiator-utils-log-info.patch
|
||||
|
||||
# Fix iscsiadm non default port handling
|
||||
Patch10: iscsi-initiator-utils-fix-non-def-port.patch
|
||||
|
||||
Group: System Environment/Daemons
|
||||
License: GPLv2+
|
||||
@ -67,6 +68,7 @@ developing applications that use %{name}.
|
||||
%patch7 -p1 -b .fix-zero-MaxXmitDataSegmentLength
|
||||
%patch8 -p1 -b .be2iscsi-fix-init-r2t
|
||||
%patch9 -p1 -b .log-info
|
||||
%patch10 -p1 -b .fix-non-def-port
|
||||
|
||||
%build
|
||||
cd utils/open-isns
|
||||
@ -179,6 +181,9 @@ fi
|
||||
%{_includedir}/libiscsi.h
|
||||
|
||||
%changelog
|
||||
* Wed Jun 9 2010 Mike Christie <mchristi@redhat.com> 6.2.0.872.5
|
||||
- Fix iscsiadm handling of port argument when it is not the default 3260.
|
||||
|
||||
* Thu May 6 2010 Mike Christie <mchristi@redhat.com> 6.2.0.872.4
|
||||
- Fix iscsi script operations to check for offload drivers in rh_status
|
||||
- Fix iscsiadm logging to not trigger iscsi script error detection
|
||||
|
Loading…
Reference in New Issue
Block a user