diff options
Diffstat (limited to 'tests/init.cfg')
-rw-r--r-- | tests/init.cfg | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/tests/init.cfg b/tests/init.cfg index b2d1bab81..ceb944811 100644 --- a/tests/init.cfg +++ b/tests/init.cfg @@ -295,13 +295,16 @@ require_proc_pid_status_() kill $pid } -# Return nonzero if the specified directory is on a file system for -# which FIEMAP support exists, and the file system type is new enough -# (unlike ext2 and ext3) that it is hard to find an instance *without* -# FIEMAP support. +# Return nonzero if the specified path is on a file system for +# which FIEMAP support exists. Note some file systems (like ext3) +# only support FIEMAP for files, not directories. fiemap_capable_() { - df -T -t btrfs -t xfs -t ext4 -t ocfs2 -t gfs2 "$@" + if ! python < /dev/null; then + echo 'fiemap_capable_: python missing: assuming not fiemap capable' 1>&2 + return 1 + fi + python $abs_srcdir/fiemap-capable "$@" } # Does the current (working-dir) file system support sparse files? |