diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-06-22 21:58:32 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-06-27 16:36:17 +0100 |
commit | 05d2b63359eeac176c3249e0c951d792ede963a1 (patch) | |
tree | ecf0a37accd57ba4a6df0b1415c8b1833a0e0efd | |
parent | 7fc9e8601fcfe470634a8e9641728139b63b07bf (diff) | |
download | libguestfs-oldlinux.tar.gz libguestfs-oldlinux.tar.xz libguestfs-oldlinux.zip |
EPEL 5: Add 1 second pause after unmounting any filesystem.oldlinux
This fixes the test-charset-fidelity test case. A simpler example
which fails without this is:
guestfish <<EOF
sparse test1.img 1G
run
part-disk /dev/sda mbr
mkfs msdos /dev/sda1
mount /dev/sda1 /
touch /foo
umount /
mkfs ntfs /dev/sda1
# Next command would fail:
mount /dev/sda1 /
vfs-type /dev/sda1 -x
EOF
-rw-r--r-- | daemon/mount.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/daemon/mount.c b/daemon/mount.c index 0661eb87..6cfe3e38 100644 --- a/daemon/mount.c +++ b/daemon/mount.c @@ -216,6 +216,9 @@ do_umount (const char *pathordevice) free (err); + /* RHEL 5 only. */ + sleep (1); + return 0; } @@ -376,6 +379,9 @@ do_umount_all (void) free_stringslen (mounts.argv, mounts.size); + /* RHEL 5 only. */ + sleep (1); + return 0; } |