[packages/python-blivet] disable --cache on pvscan, we do not have lvmetad enabled

glen glen at pld-linux.org
Sat May 18 12:19:04 CEST 2013


commit 85bb2786d21df6cbb2340f02864ead6bcce24048
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sat May 18 13:17:41 2013 +0300

    disable --cache on pvscan, we do not have lvmetad enabled
    
      # lvm pvscan --cache
      Command failed with status code 5.
    
      # lvm pvscan
      PV /dev/sda1   VG sys   lvm2 [8.00 GiB / 5.61 GiB free]
      Total: 1 [8.00 GiB] / in use: 1 [8.00 GiB] / in no VG: 0 [0   ]
    
    probably correct would be check status code 5 and try without --cache argument

 lvm-lvmetad.patch  | 11 +++++++++++
 python-blivet.spec |  2 ++
 2 files changed, 13 insertions(+)
---
diff --git a/python-blivet.spec b/python-blivet.spec
index 11f13f4..c633f6f 100644
--- a/python-blivet.spec
+++ b/python-blivet.spec
@@ -7,6 +7,7 @@ License:	GPL v2+
 Group:		Libraries/Python
 Source0:	http://pkgs.fedoraproject.org/repo/pkgs/python-blivet/%{module}-%{version}.tar.gz/30592cc8261fb936023b9d466dec68da/%{module}-%{version}.tar.gz
 # Source0-md5:	30592cc8261fb936023b9d466dec68da
+Patch0:		lvm-lvmetad.patch
 URL:		http://fedoraproject.org/wiki/blivet
 BuildRequires:	gettext-devel
 BuildRequires:	python-distribute
@@ -36,6 +37,7 @@ modifying storage configuration.
 
 %prep
 %setup -q -n %{module}-%{version}
+%patch0 -p1
 
 %build
 %{__make}
diff --git a/lvm-lvmetad.patch b/lvm-lvmetad.patch
new file mode 100644
index 0000000..c79aaf6
--- /dev/null
+++ b/lvm-lvmetad.patch
@@ -0,0 +1,11 @@
+--- blivet-0.14/blivet/devicelibs/lvm.py~	2013-05-15 21:55:45.000000000 +0300
++++ blivet-0.14/blivet/devicelibs/lvm.py	2013-05-18 13:16:24.024863412 +0300
+@@ -193,7 +193,7 @@
+         raise LVMError("pvremove failed for %s: %s" % (device, msg))
+ 
+ def pvscan(device):
+-    args = ["pvscan", "--cache",] + \
++    args = ["pvscan"] + \
+             _getConfigArgs() + \
+             [device]
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-blivet.git/commitdiff/85bb2786d21df6cbb2340f02864ead6bcce24048



More information about the pld-cvs-commit mailing list