xfs
[Top] [All Lists]

[PATCH] xfstests 073: unmount source image in cleanup

To: xfs-oss <xfs@xxxxxxxxxxx>
Subject: [PATCH] xfstests 073: unmount source image in cleanup
From: Eric Sandeen <sandeen@xxxxxxxxxx>
Date: Fri, 15 Jan 2010 18:41:37 -0600
User-agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
Test 073 is currently failing w/ xfs_repair problems, and when
it does, the whole series stops because the test dir still has
a loopback mounted filesystem on it, and it can't unmount.

Fix that.

Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxxx>
---

diff --git a/073 b/073
index 0ef9287..756c1c8 100755
--- a/073
+++ b/073
@@ -44,6 +44,7 @@ _cleanup()
        umount $SCRATCH_MNT 2>/dev/null
        umount -d $imgs.loop 2>/dev/null
        [ -d $imgs.loop ] && rmdir $imgs.loop
+       umount -d $imgs.source_dir 2>/dev/null
        [ -d $imgs.source_dir ] && rm -rf $imgs.source_dir
        rm -f $imgs.* $tmp.* /var/tmp/xfs_copy.log.*
 }

<Prev in Thread] Current Thread [Next in Thread>