forked from ports/contrib
lvm2: global-locking-conf.patch
This commit is contained in:
parent
293f52808f
commit
586f280f03
@ -1,2 +1,3 @@
|
||||
e5b1927825ea2ef4a270606e881d9c88 LVM2.2.02.41.tgz
|
||||
4e831566d153ece89684b0c5fa874d65 lvm-2.02.41_lv-mirror.patch
|
||||
7605c4380c33836ab1a13250a02a2870 lvm2-2.02.41_global-locking-conf.patch
|
||||
4e831566d153ece89684b0c5fa874d65 lvm2-2.02.41_lv-mirror.patch
|
||||
|
@ -6,14 +6,16 @@
|
||||
|
||||
name=lvm2
|
||||
version=2.02.41
|
||||
release=2
|
||||
release=3
|
||||
source=(ftp://sources.redhat.com/pub/lvm2/LVM2.$version.tgz
|
||||
lvm-2.02.41_lv-mirror.patch)
|
||||
lvm2-2.02.41_lv-mirror.patch
|
||||
lvm2-2.02.41_global-locking-conf.patch)
|
||||
|
||||
build() {
|
||||
cd LVM2.$version
|
||||
|
||||
patch -p 1 -i $SRC/lvm-2.02.41_lv-mirror.patch
|
||||
patch -p 1 -i $SRC/lvm2-2.02.41_lv-mirror.patch
|
||||
patch -p 1 -i $SRC/lvm2-2.02.41_global-locking-conf.patch
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
|
22
lvm2/lvm2-2.02.41_global-locking-conf.patch
Normal file
22
lvm2/lvm2-2.02.41_global-locking-conf.patch
Normal file
@ -0,0 +1,22 @@
|
||||
--- LVM2/lib/locking/locking.c 2008/09/10 10:14:59 1.50
|
||||
+++ LVM2/lib/locking/locking.c 2008/10/24 01:16:16 1.51
|
||||
@@ -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.");
|
Loading…
x
Reference in New Issue
Block a user