[PATCH blivet rhel7-branch] (v2) Forget existing partitions of device becoming a multipath member (#1043444)

Radek Vykydal rvykydal at redhat.com
Wed Dec 18 10:46:14 UTC 2013


Resolves: rhbz#1043444

For example of iSCSI disk attached in GUI.

When adding rescanned partitions of the (now multipath-member) device
they will be ignored (as partitions of multipath-member).

Followup of
commit 9e3f46c964e4c5d6087c2f649c80add0b5ae7e45
---
 blivet/devicetree.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/blivet/devicetree.py b/blivet/devicetree.py
index c62c54a..eabf7d3 100644
--- a/blivet/devicetree.py
+++ b/blivet/devicetree.py
@@ -1022,9 +1022,11 @@ class DeviceTree(object):
         if device and device.isDisk and \
             devicelibs.mpath.is_multipath_member(device.path) and \
             device.format and device.format.type != "multipath_member":
-                log.debug("%s newly detected as multipath member, dropping old format" % device.name)
+                log.debug("%s newly detected as multipath member, dropping old format and removing kids" % device.name)
                 info["ID_FS_TYPE"] = "multipath_member"
                 device.format = formats.DeviceFormat()
+                for d in self.getChildren(device):
+                    self._removeDevice(d, moddisk=False)
 
         #
         # The first step is to either look up or create the device
-- 
1.7.11.7



More information about the anaconda-patches mailing list