]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
xfstests 042: point xfs_fsr right at the fragmented file
authorEric Sandeen <sandeen@sandeen.net>
Sat, 9 May 2009 03:03:40 +0000 (22:03 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Sat, 9 May 2009 03:03:40 +0000 (22:03 -0500)
Somehow 042 as it stands isn't actually defragging the fragmented
file we created (see 042.full post-run)

Probably need to look into that as well, but for now this should
make the call to fsr actually _do_ something.

This has let 2 fsr bugs slip through qa in the past few months.   :(

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Christoph Hellwig <hch@infradead.org>
042

diff --git a/042 b/042
index 662804081162f1d69b259c86cafc29adc1aca90a..1ad81e48cb4d9acbf4e16f322e0d1b3b65ae7cee 100755 (executable)
--- a/042
+++ b/042
@@ -114,7 +114,7 @@ _do "sum $SCRATCH_MNT/fragmented >$tmp.sum1"
 _do "Remove other files" "rm -rf $SCRATCH_MNT/{pad,hole*}"
 
 # defragment
-_do "Run xfs_fsr on filesystem" "$XFS_FSR_PROG -v $SCRATCH_DEV"
+_do "Run xfs_fsr on filesystem" "$XFS_FSR_PROG -v $SCRATCH_MNT/fragmented"
 _do "xfs_bmap -v $SCRATCH_MNT/fragmented"
 _do "Check 4k files" "src/fill2fs_check $tmp.manifest"