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 73cda082a3296ed5d993524e23dce7044533248d..5e9a2a3f365ccec392cee1cef9fc3b4d119082eb 100755 (executable)
@@ -17,7 +17,7 @@ imagex() {
 }
 
 __do_unmount() {
 }
 
 __do_unmount() {
-       if !  fusermount -u $1; then
+       if !  fusermount -z -u $1; then
                error "Failed to unmount \"$1\""
        fi
 
                error "Failed to unmount \"$1\""
        fi