]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
xfstests 073: unmount source image in cleanup
authorEric Sandeen <sandeen@sandeen.net>
Sun, 17 Jan 2010 16:35:23 +0000 (10:35 -0600)
committerEric Sandeen <sandeen@sandeen.net>
Sun, 17 Jan 2010 16:35:23 +0000 (10:35 -0600)
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@sandeen.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
073

diff --git a/073 b/073
index 0ef9287a2966443953fdf42b63e3ce090d4c9da2..756c1c84d1d52912a310d85d654cb18ab59d5d6b 100755 (executable)
--- 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.*
 }