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..9798a9d 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)
#
# The first step is to either look up or create the device
--
1.7.11.7
Show replies by date
Please ignore, sending v2 with a fix.