Skip to contentSkip to conversation

multipath-tools/libmultipath discovery.c

PATCH [email protected] 1 participant 1 message Oct 6, 2006 Device mapper

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/dm
Module name: multipath-tools
Changes by: [email protected] 2006-10-06 18:35:13

Modified files:
libmultipath : discovery.c

Log message:
fixing bz #207726, if sysfs_get_rev fails, don't completely abort all path checks.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/libmultipath/discovery.c.diff?cvsroot=dm&r1=1.30&r2=1.31

libmultipath/discovery.c +1 -1
@@ -470,7 +470,7 @@
 
 	if (sysfs_get_rev(sysfs_path, pp->dev,
 			  pp->rev, SCSI_REV_SIZE))
-		return 1;
+		pp->rev[0] = '\0';;
 
 	condlog(3, "%s: rev = %s", pp->dev, pp->rev);