From fb9200c7be8ac9c494c022ea8a873ac4f06b496f Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 3 Dec 2007 16:42:55 +0000 Subject: - don't check /proc/partitions for a partition_table::lvm (ie PV on non partitioned drive) (also committed in fs/proc_partitions.pm) --- perl-install/patch/patch-LVM-PV-on-full-disk.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 perl-install/patch/patch-LVM-PV-on-full-disk.pl diff --git a/perl-install/patch/patch-LVM-PV-on-full-disk.pl b/perl-install/patch/patch-LVM-PV-on-full-disk.pl new file mode 100644 index 000000000..8f9060f5c --- /dev/null +++ b/perl-install/patch/patch-LVM-PV-on-full-disk.pl @@ -0,0 +1,14 @@ +use fs::proc_partitions; +package fs::proc_partitions; + +log::l("PATCH: not checking /proc/partitions for partition_table::lvm"); + +my $real_compare = \&compare; +undef *compare; +*compare = sub { + my ($hd) = @_; + + eval { $hd->isa('partition_table::lvm') } and return; + + &$real_compare; +}; -- cgit v1.2.1