test-imagex-ntfs: Use lazy unmount
authorEric Biggers <ebiggers3@gmail.com>
Mon, 5 Nov 2012 20:58:38 +0000 (14:58 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Mon, 5 Nov 2012 20:58:38 +0000 (14:58 -0600)
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...

tests/test-imagex-ntfs

index 73cda08..5e9a2a3 100755 (executable)
@@ -17,7 +17,7 @@ imagex() {
 }
 
 __do_unmount() {
-       if !  fusermount -u $1; then
+       if !  fusermount -z -u $1; then
                error "Failed to unmount \"$1\""
        fi