From cef6e7d7e384e6f5407eec5ab039cdc13571c3fb Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Wed, 5 Mar 2008 15:53:33 +0000 Subject: [PATCH] - recognize vio disks --- lvm2-vio-disk.patch | 11 +++++++++++ lvm2.spec | 7 ++++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 lvm2-vio-disk.patch diff --git a/lvm2-vio-disk.patch b/lvm2-vio-disk.patch new file mode 100644 index 0000000..c6315e3 --- /dev/null +++ b/lvm2-vio-disk.patch @@ -0,0 +1,11 @@ +diff -up LVM2.2.02.33/lib/filters/filter.c.vio LVM2.2.02.33/lib/filters/filter.c +--- LVM2.2.02.33/lib/filters/filter.c.vio 2008-03-05 10:47:06.000000000 -0500 ++++ LVM2.2.02.33/lib/filters/filter.c 2008-03-05 10:49:43.000000000 -0500 +@@ -77,6 +77,7 @@ static const device_info_t device_info[] + {"xvd", 16}, /* Xen virtual block device */ + {"vdisk", 8}, /* SUN's LDOM virtual block device */ + {"ps3disk", 16}, /* PlayStation 3 internal disk */ ++ {"vd", 8}, /* VirtIO disk */ + {NULL, 0} + }; + diff --git a/lvm2.spec b/lvm2.spec index b8f4bef..adc787d 100644 --- a/lvm2.spec +++ b/lvm2.spec @@ -6,13 +6,14 @@ Summary: Userland logical volume management tools Name: lvm2 Version: 2.02.33 -Release: 9%{?dist} +Release: 10%{?dist} License: GPLv2 Group: System Environment/Base URL: http://sources.redhat.com/lvm2 Source0: LVM2.%{version}.tgz Source1: device-mapper.%{device_mapper_version}.tgz Patch0: cluster-locking-built-in.patch +Patch1: lvm2-vio-disk.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: libselinux-devel >= 1.30.19-4, libsepol-devel BuildRequires: ncurses-devel @@ -36,6 +37,7 @@ or more physical volumes and creating one or more logical volumes %setup -q -n LVM2.%{version} %setup -q -T -D -a 1 -n LVM2.%{version} %patch -p1 -b .locking +%patch1 -p1 %build cd device-mapper.%{device_mapper_version} @@ -267,6 +269,9 @@ This package contains the device-mapper shared library, libdevmapper. %changelog +* Wed Mar 5 2008 Jeremy Katz - 2.02.33-10 +- recognize vio disks + * Thu Jan 31 2008 Alasdair Kergon > - 2.02.33-9 - Improve internal label caching performance while locks are held. - Fix mirror log name construction during lvconvert.