parent
ba2af41928
commit
6be2456120
21
lvm2-2_02_172-lvmdbusd-removemissing.patch
Normal file
21
lvm2-2_02_172-lvmdbusd-removemissing.patch
Normal file
@ -0,0 +1,21 @@
|
||||
daemons/lvmdbusd/cmdhandler.py | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
|
||||
diff --git a/daemons/lvmdbusd/cmdhandler.py b/daemons/lvmdbusd/cmdhandler.py
|
||||
index 8ed38cb..a883f1e 100644
|
||||
--- a/daemons/lvmdbusd/cmdhandler.py
|
||||
+++ b/daemons/lvmdbusd/cmdhandler.py
|
||||
@@ -618,10 +618,10 @@ def vg_reduce(vg_name, missing, pv_devices, reduce_options):
|
||||
cmd = ['vgreduce']
|
||||
cmd.extend(options_to_cli_args(reduce_options))
|
||||
|
||||
- if len(pv_devices) == 0:
|
||||
- cmd.append('--all')
|
||||
if missing:
|
||||
cmd.append('--removemissing')
|
||||
+ elif len(pv_devices) == 0:
|
||||
+ cmd.append('--all')
|
||||
|
||||
cmd.append(vg_name)
|
||||
cmd.extend(pv_devices)
|
@ -54,7 +54,7 @@ Summary: Userland logical volume management tools
|
||||
Name: lvm2
|
||||
|
||||
Version: 2.02.171
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
License: GPLv2
|
||||
Group: System Environment/Base
|
||||
URL: http://sources.redhat.com/lvm2
|
||||
@ -65,6 +65,8 @@ Patch1: lvm2-lvmetad-timeout.patch
|
||||
Patch2: lvm2-2_02_172-lvmdbusd-fix-pv-lookup.patch
|
||||
# Commit 16c6d9f11ab5 fixing RHBZ#1451612
|
||||
Patch3: lvm2-2_02_172-lvmdbusd-mangling-config.patch
|
||||
# Commit 192d142e1cd3 fixing RHBZ#1455471
|
||||
Patch4: lvm2-2_02_172-lvmdbusd-removemissing.patch
|
||||
|
||||
BuildRequires: libselinux-devel >= %{libselinux_version}, libsepol-devel
|
||||
BuildRequires: libblkid-devel >= %{util_linux_version}
|
||||
@ -122,6 +124,7 @@ or more physical volumes and creating one or more logical volumes
|
||||
%patch1 -p1 -b .lvmetad_timeout
|
||||
%patch2 -p1 -b .lvmdbusd_lookup
|
||||
%patch3 -p1 -b .lvmdbusd_config_mangling
|
||||
%patch4 -p1 -b .lvmdbusd_removemissing
|
||||
|
||||
%build
|
||||
%global _default_pid_dir /run
|
||||
@ -854,6 +857,9 @@ the device-mapper event library.
|
||||
%{_libdir}/pkgconfig/devmapper-event.pc
|
||||
|
||||
%changelog
|
||||
* Fri Jun 09 2017 Marian Csontos <mcsontos@redhat.com> - 2.02.171-3
|
||||
- Fix lvmdbusd mangling config options.
|
||||
|
||||
* Wed May 17 2017 Marian Csontos <mcsontos@redhat.com> - 2.02.171-2
|
||||
- Fix lvmdbusd mangling config options.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user