From: Eric Biggers Date: Mon, 5 Nov 2012 20:58:38 +0000 (-0600) Subject: test-imagex-ntfs: Use lazy unmount X-Git-Tag: v1.1.0~40 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=8c77eaafc1aa3874b641470e8e9ecf50a5b50a55;ds=sidebyside test-imagex-ntfs: Use lazy unmount Apparently, it's possible for 'fusermount -u' to return before a NTFS-3g-based filesystem has actually unmounted, therefore causing a subsequent mount to the same location to fail if it happens quickly enough. Using a lazy unmount should fix this I think... --- diff --git a/tests/test-imagex-ntfs b/tests/test-imagex-ntfs index 73cda082..5e9a2a3f 100755 --- a/tests/test-imagex-ntfs +++ b/tests/test-imagex-ntfs @@ -17,7 +17,7 @@ imagex() { } __do_unmount() { - if ! fusermount -u $1; then + if ! fusermount -z -u $1; then error "Failed to unmount \"$1\"" fi