git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4df67f2
)
umount-all: Add udev_settle after unmounting disks.
author
Richard W.M. Jones
<rjones@redhat.com>
Tue, 7 Dec 2010 16:15:32 +0000
(16:15 +0000)
committer
Richard W.M. Jones
<rjones@redhat.com>
Tue, 7 Dec 2010 16:24:34 +0000
(16:24 +0000)
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.
daemon/mount.c
patch
|
blob
|
history
diff --git
a/daemon/mount.c
b/daemon/mount.c
index
ccd07c6
..
250656a
100644
(file)
--- a/
daemon/mount.c
+++ b/
daemon/mount.c
@@
-324,6
+324,9
@@
do_umount_all (void)
free_stringslen (mounts, size);
free_stringslen (mounts, size);
+ /* Without this, lvm_remove_all was failing on Ubuntu. */
+ udev_settle ();
+
/* We've unmounted root now, so ... */
root_mounted = 0;
/* We've unmounted root now, so ... */
root_mounted = 0;