[PATCH 3/3] When ignoring partitions make sure lvm also ignores them

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When we ignore partitions because we ignore the disk, or because
the disk is part of a bios raid set (the case I hit causing me to write
this patch), we need to make sure lvm also ignores the partitions
and does not happily try to use PV's it thinks are on there.
---
 storage/devicetree.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/storage/devicetree.py b/storage/devicetree.py
index b856c6c..7411905 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -885,6 +885,7 @@ class DeviceTree(object):
         for ignored in self._ignoredDisks:
             if ignored == os.path.basename(os.path.dirname(sysfs_path)):
                 # this is a partition on a disk in the ignore list
+                lvm.lvm_cc_addFilterRejectRegexp(name)
                 return True
 
         # Ignore partitions found on the raw disks which are part of a
@@ -894,6 +895,7 @@ class DeviceTree(object):
         for set in sets:
             for disk in set.parents:
                 if disk.name == os.path.basename(os.path.dirname(sysfs_path)):
+                    lvm.lvm_cc_addFilterRejectRegexp(name)
                     return True
 
         # Ignore loop and ram devices, we normally already skip these in
-- 
1.6.2.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux