Re: [PATCH 1/2] Wait for udev to settle before trying to find dmraid sets in udev DB

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

 



On Mon, 2009-10-05 at 15:25 +0200, Hans de Goede wrote:
> I hit the race fixed by this during some local dmraid install testing
> while investigating bug 527035.
> 
> This patch is intended for both F-12 and the devel branch.

Both look okay to me.

> ---
>  storage/devicetree.py |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/storage/devicetree.py b/storage/devicetree.py
> index a9b74eb..cce8013 100644
> --- a/storage/devicetree.py
> +++ b/storage/devicetree.py
> @@ -1664,6 +1664,10 @@ class DeviceTree(object):
>  
>                  self._addDevice(dm_array)
>  
> +                # Wait for udev to scan the just created nodes, to avoid a race
> +                # with the udev_get_block_device() call below.
> +                udev_settle()
> +
>                  # Get the DMRaidArrayDevice a DiskLabel format *now*, in case
>                  # its partitions get scanned before it does.
>                  dm_array.updateSysfsPath()

_______________________________________________
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