FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 03-24-2009, 10:15 PM
David Lehman
 
Default Call udev_settle after committing changes to a disk (#491529)

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@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 09:00 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org