[PATCH 1/2] When repopulating multipath members mark them as multipath (#1056024)

Radek Vykydal rvykydal at redhat.com
Fri Jan 24 12:46:46 UTC 2014


I should fix also the comments.

On 01/24/2014 12:09 PM, Radek Vykydal wrote:
> Resolves: rhbz#1056024
>
> This is needed when doing (re)populate when some FCoE multipath devices had
> already been added in previous populate. We need to add info["ID_FS_TYPE"] (as
> when the device is scanned/populated for the first time) so that the
> condition excluding multipath menbers in handleUdevDiskLabelFormat is
> applied to the device.
> ---
>   blivet/devicetree.py | 6 +++---
>   1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/blivet/devicetree.py b/blivet/devicetree.py
> index 254bfc6..b7e385e 100644
> --- a/blivet/devicetree.py
> +++ b/blivet/devicetree.py
> @@ -1018,10 +1018,10 @@ class DeviceTree(object):
>   
>           # newly added device (eg iSCSI) could make this one a multipath member
>           if device and device.isDisk and \
> -            devicelibs.mpath.is_multipath_member(device.path) and \
> -            device.format and device.format.type != "multipath_member":
> +           devicelibs.mpath.is_multipath_member(device.path):
> +            info["ID_FS_TYPE"] = "multipath_member"
> +            if device.format and device.format.type != "multipath_member":
>                   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)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-When-repopulating-multipath-members-mark-them-as-mul.patch
Type: text/x-patch
Size: 1938 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/anaconda-patches/attachments/20140124/c6ae5802/attachment.bin>


More information about the anaconda-patches mailing list