[Pkg-iscsi-maintainers] [SCM] Debian Open-iSCSI Packaging branch, upstream-mnc, updated. 2.0-872-193-gde2c0e7

Mike Christie michaelc at cs.wisc.edu
Sat Apr 7 15:43:42 UTC 2012

The following commit has been merged in the upstream-mnc branch:
commit 4cc22470d5a1391108f329842f63ff3c31ccd288
Author: Mike Christie <michaelc at cs.wisc.edu>
Date:   Tue Aug 2 00:11:36 2011 -0500

    iscsi tools: fix iname sysfs handling
    The initiatorname is optional and not supported by some drivers,
    so it may not be set during some operations. This fixes
    iscsi_sysfs_read_iface to not return error when it cannot
    be read in.

diff --git a/usr/iscsi_sysfs.c b/usr/iscsi_sysfs.c
index e82fe80..55a5438 100644
--- a/usr/iscsi_sysfs.c
+++ b/usr/iscsi_sysfs.c
@@ -499,6 +499,8 @@ static int iscsi_sysfs_read_iface(struct iface_rec *iface, int host_no,
 			log_debug(7, "Could not read initiatorname for "
 				  "host%d\n", host_no);
+		/* optional so do not return error */
+		ret = 0;

Debian Open-iSCSI Packaging

More information about the Pkg-iscsi-maintainers mailing list