From: Wang Sheng-Hui Date: Thu, 28 Feb 2013 02:05:56 +0000 (+0000) Subject: xfstests 276: fix error 'FIBMAP: Invalid argument' X-Git-Tag: v2022.05.01~3529 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=eba3a5206cd7f8df73d6e6dbf2bb0afca677fca8;p=users%2Fhch%2Fxfstests-dev.git xfstests 276: fix error 'FIBMAP: Invalid argument' 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 Reviewed-by: Eric Sandeen Signed-off-by: Rich Johnston --- diff --git a/276 b/276 index c1ce8ace2..65da464d2 100755 --- 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