]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
xfstests 276: fix error 'FIBMAP: Invalid argument'
authorWang Sheng-Hui <shhuiw@gmail.com>
Thu, 28 Feb 2013 02:05:56 +0000 (02:05 +0000)
committerRich Johnston <rjohnston@sgi.com>
Tue, 5 Mar 2013 18:09:27 +0000 (12:09 -0600)
Commit 05dadc0 ("Btrfs: add fiemap's flag check") added validity
checks to the fiemap flags and hence invalid flags are now being
rejected. Test 276 passes an invalid fiemap flag to btrfs, and so
that test fails since this commit was added.

Btrfs doesn't support FIEMAP_FLAG_XATTR, which is enabled by -x option
of filefrag, and will fail with
'FIBMAP: Invalid argument'
for 'filefrag -vx'. 'filefrag -vx' fails on btrfs with
     'FIEMAP failed with unsupported flags 2'
Remove the '-x' option.

Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
276

diff --git a/276 b/276
index c1ce8ace2054d6f0c2422995b213d3366ab43a45..65da464d2e5a9963fd32c62deb12f0d0b5c22bdb 100755 (executable)
--- a/276
+++ b/276
@@ -75,7 +75,7 @@ _filter_extents()
 
 _check_file_extents()
 {
-       cmd="filefrag -vx $1"
+       cmd="filefrag -v $1"
        echo "# $cmd" >> $seq.full
        out=`$cmd | _filter_extents`
        if [ -z "$out" ]; then