Re: [PATCH 1/3] Don't stop mdraid containers or their arrays (#532971)

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

 



> diff --git a/storage/devices.py b/storage/devices.py
> index 50ae804..28e031c 100644
> --- a/storage/devices.py
> +++ b/storage/devices.py
> @@ -2517,6 +2517,12 @@ class MDRaidArrayDevice(StorageDevice):
>              self.format.teardown()
>              udev_settle(timeout=10)
>  
> +        # Since BIOS RAID sets (containers in mdraid terminology) never change
> +        # there is no need to stop them and later restart them. Not stopping
> +        # (and thus also not starting) them also works around bug 523334
> +        if self.type == "mdcontainer" or self.devices[0].type == "mdcontainer":
> +            return
> +
>          # We don't really care what the array's state is. If the device
>          # file exists, we want to deactivate it. mdraid has too many
>          # states.

Are we guaranteed to have self.devices[0] here?

- Chris

_______________________________________________
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