Re: [PATCH] Call udev_settle after committing changes to a disk (#491529)

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

 



On Tue, 2009-03-24 at 21:06 +0100, Hans de Goede wrote:
> ---
>  storage/devices.py |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)

Looks good. I'm going to push this so it gets into tonight's build.

Dave

> 
> diff --git a/storage/devices.py b/storage/devices.py
> index 064ebc1..36043ce 100644
> --- a/storage/devices.py
> +++ b/storage/devices.py
> @@ -795,6 +795,9 @@ class DiskDevice(StorageDevice):
>          if keepTrying:
>              raise DeviceError("cannot commit to disk %s after %d attempts" % (self.name, maxTries,))
>  
> +        # commit makes the kernel re-scan the partition table
> +        udev_settle()
> +
>      def destroy(self):
>          """ Destroy the device. """
>          log_method_call(self, self.name, status=self.status)

_______________________________________________
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