aboutsummaryrefslogtreecommitdiffstats
path: root/main/lvm2/fix-vgchange-mknodes-regression.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-11-24 10:02:34 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-11-24 10:04:18 +0000
commiteac4de6dd1ed522902da20170085e08dd910f0d8 (patch)
tree5810fae6ef0419139810f1bb78e2de01ef35b6cc /main/lvm2/fix-vgchange-mknodes-regression.patch
parent9cfd4b125daacff3e09c527e020432e3660ce1f8 (diff)
downloadaports-eac4de6dd1ed522902da20170085e08dd910f0d8.tar.bz2
aports-eac4de6dd1ed522902da20170085e08dd910f0d8.tar.xz
main/lvm2: fix vgscan --mknodes
we backport a patch from upstream and change our init.d script to run vgchange even if vgscan returns failure. fixes #3543
Diffstat (limited to 'main/lvm2/fix-vgchange-mknodes-regression.patch')
-rw-r--r--main/lvm2/fix-vgchange-mknodes-regression.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/main/lvm2/fix-vgchange-mknodes-regression.patch b/main/lvm2/fix-vgchange-mknodes-regression.patch
new file mode 100644
index 0000000000..67fdf380a1
--- /dev/null
+++ b/main/lvm2/fix-vgchange-mknodes-regression.patch
@@ -0,0 +1,30 @@
+From 4dc602f79bd6579eef15a9227aee99fe832a7610 Mon Sep 17 00:00:00 2001
+From: Zdenek Kabelac <zkabelac@redhat.com>
+Date: Fri, 21 Nov 2014 19:36:51 +0100
+Subject: dev_manager: fix mknodes
+
+Fix regression introduced with a2c1024f6ac7e22ac5c010a267d0c1df331ee416
+
+_setup_task(mknodes ? name : NULL...
+
+has been replaced with:
+
+_setup_task(type != MKNODES ? name : NULL....
+
+Use '=='
+
+index 44b273d..e336933 100644
+--- a/lib/activate/dev_manager.c
++++ b/lib/activate/dev_manager.c
+@@ -206,7 +206,7 @@ static int _info_run(info_type_t type, const char *name, const char *dlid,
+ return 0;
+ }
+
+- if (!(dmt = _setup_task(type != MKNODES ? name : NULL, dlid, 0, dmtask,
++ if (!(dmt = _setup_task((type == MKNODES) ? name : NULL, dlid, 0, dmtask,
+ major, minor, with_open_count)))
+ return_0;
+
+--
+cgit v0.10.2
+