Skip to content

Commit

Permalink
EPEL 5: Add 1 second pause after unmounting any filesystem.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rwmjones committed Oct 17, 2013
1 parent 19ce5c5 commit 33195f9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions daemon/mount.c
Expand Up @@ -228,6 +228,9 @@ do_umount (const char *pathordevice,
return -1;
}

/* RHEL 5 only. */
sleep (1);

return 0;
}

Expand Down Expand Up @@ -393,6 +396,9 @@ do_umount_all (void)

free_stringslen (mounts.argv, mounts.size);

/* RHEL 5 only. */
sleep (1);

return 0;
}

Expand Down

0 comments on commit 33195f9

Please sign in to comment.