btrfs: use $FILEFRAG_PROG instead of filefrag
[jlayton/xfstests.git] / tests / btrfs / 004
index 3f8330f2193cf82dff6bc56f7db8fba765559a68..1b5b124d9a8993b534e3bf7c60cc0bc35b619239 100755 (executable)
@@ -53,7 +53,7 @@ _require_scratch
 _require_no_large_scratch_dev
 _require_btrfs_command inspect-internal logical-resolve
 _require_btrfs_command inspect-internal inode-resolve
-_require_command "/usr/sbin/filefrag" filefrag
+_require_command "$FILEFRAG_PROG" filefrag
 
 rm -f $seqres.full
 
@@ -82,7 +82,7 @@ _filter_extents()
 
 _check_file_extents()
 {
-       cmd="filefrag -v $1"
+       cmd="$FILEFRAG_PROG -v $1"
        echo "# $cmd" >> $seqres.full
        out=`$cmd | _filter_extents`
        if [ -z "$out" ]; then