summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2010-12-07 16:15:32 +0000
committerRichard W.M. Jones <rjones@redhat.com>2010-12-07 16:24:34 +0000
commitad2abf89c364d5ec73fb12af63b053637d99d757 (patch)
treeec147e252f64caca3a97605c6a5b6c93331c1966 /daemon
parent4df67f26aef7339ef9690da7becb756c9f3f4eaa (diff)
downloadlibguestfs-ad2abf89c364d5ec73fb12af63b053637d99d757.tar.gz
libguestfs-ad2abf89c364d5ec73fb12af63b053637d99d757.tar.xz
libguestfs-ad2abf89c364d5ec73fb12af63b053637d99d757.zip
umount-all: Add udev_settle after unmounting disks.
This helps avoid an error on Ubuntu, but it's not clear if this is a real solution or just helps by adjusting the timing of some race condition.
Diffstat (limited to 'daemon')
-rw-r--r--daemon/mount.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/daemon/mount.c b/daemon/mount.c
index ccd07c6b..250656a5 100644
--- a/daemon/mount.c
+++ b/daemon/mount.c
@@ -324,6 +324,9 @@ do_umount_all (void)
free_stringslen (mounts, size);
+ /* Without this, lvm_remove_all was failing on Ubuntu. */
+ udev_settle ();
+
/* We've unmounted root now, so ... */
root_mounted = 0;