Skip to contentSkip to conversation

LVM2 lib/locking/locking.c ./WHATS_NEW

PATCH [email protected] 1 participant 1 message Oct 24, 2008

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: agk at sourceware.org 2008-10-24 01:16:17

Modified files:
lib/locking : locking.c
. : WHATS_NEW

Log message:
Accept locking fallback_to_* options in the global section as documented.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/locking/locking.c.diff?cvsroot=lvm2&r1=1.50&r2=1.51
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.980&r2=1.981

lib/locking/locking.c +4 -2
@@ -233,7 +233,8 @@
 				return 1;
 		}
 		if (!find_config_tree_int(cmd, "locking/fallback_to_clustered_locking",
-					  DEFAULT_FALLBACK_TO_CLUSTERED_LOCKING))
+			    find_config_tree_int(cmd, "global/fallback_to_clustered_locking",
+						 DEFAULT_FALLBACK_TO_CLUSTERED_LOCKING)))
 			break;
 #endif
 
@@ -255,7 +256,8 @@
 
 	if ((type == 2 || type == 3) &&
 	    find_config_tree_int(cmd, "locking/fallback_to_local_locking",
-				 DEFAULT_FALLBACK_TO_LOCAL_LOCKING)) {
+	    	    find_config_tree_int(cmd, "global/fallback_to_local_locking",
+					 DEFAULT_FALLBACK_TO_LOCAL_LOCKING))) {
 		log_warn("WARNING: Falling back to local file-based locking.");
 		log_warn("Volume Groups with the clustered attribute will "
 			  "be inaccessible.");
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@
 Version 2.02.42 - 
 ===================================
+  Accept locking fallback_to_* options in the global section as documented.
   Fix temp table activation in mirror conversions not to happen in other cmds.
   Fix temp table in mirror conversions to use always-present error not zero.