Skip to contentSkip to conversation

multipath-tools ./multipath.conf.annotated ./m ...

PATCH [email protected] 1 participant 1 message Oct 10, 2011 Device mapper

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/dm
Module name: multipath-tools
Branch: RHEL5_FC6
Changes by: [email protected] 2011-10-10 04:15:42

Modified files:
. : multipath.conf.annotated
multipath.conf.defaults
libmultipath : dict.c
multipathd : main.c

Log message:
Fix for BZs #702410, #711970, and #715524

Various small cleanups. Keep mutipath from complaining when it fails to add non-multipath devices. Allow "path_selector" or "selector" in the defaults section of multipath.conf. Document file_timeout option. Not applicable upstream.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/multipath.conf.annotated.diff?cvsroot=dm&only_with_tag=RHEL5_FC6&r1=1.18.2.18&r2=1.18.2.19
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/multipath.conf.defaults.diff?cvsroot=dm&only_with_tag=RHEL5_FC6&r1=1.5.4.29&r2=1.5.4.30
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/libmultipath/dict.c.diff?cvsroot=dm&only_with_tag=RHEL5_FC6&r1=1.17.2.19&r2=1.17.2.20
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/multipathd/main.c.diff?cvsroot=dm&only_with_tag=RHEL5_FC6&r1=1.69.2.36&r2=1.69.2.37

multipath.conf.annotated +10 -0
@@ -260,6 +260,16 @@
 #      # default : determined by the OS
 #      dev_loss_tmo 600
 #
+#      #
+#      # name    : file_timeout
+#      # scope   : multipath & multipathd
+#      # desc    : The number of seconds that multipath will wait for
+#      #           necessary files to appear while setting up a multipath
+#      #           devices.
+#      # values  : n > 0
+#      # default : 90
+#      file_timeout 30
+#
 #}
 #	
 ##
multipath.conf.defaults +1 -0
@@ -16,6 +16,7 @@
 #	user_friendly_names	no
 #	pg_prio_calc		sum
 #	bindings_file           "/var/lib/multipath/bindings"
+#	file_timeout		90
 #}
 #
 #blacklist {
libmultipath/dict.c +2 -1
@@ -2150,7 +2150,8 @@
 ;
 	install_keyword("polling_interval", &polling_interval_handler, &snprint_def_polling_interval);
 	install_keyword("udev_dir", &udev_dir_handler, &snprint_def_udev_dir);
-	install_keyword("selector", &def_selector_handler, &snprint_def_selector);
+	install_keyword("selector", &def_selector_handler, NULL);
+	install_keyword("path_selector", &def_selector_handler, &snprint_def_selector);
 	install_keyword("path_grouping_policy", &def_pgpolicy_handler, &snprint_def_path_grouping_policy);
 	install_keyword("getuid_callout", &def_getuid_callout_handler, &snprint_def_getuid_callout);
 	install_keyword("prio_callout", &def_prio_callout_handler, &snprint_def_getprio_callout);
multipathd/main.c +2 -1
@@ -227,7 +227,8 @@
 uev_add_map (char * devname, struct vectors * vecs)
 {
 	condlog(2, "%s: add map (uevent)", devname);
-	return ev_add_map(devname, vecs);
+	ev_add_map(devname, vecs);
+	return 0;
 }
 
 int