]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
common/rc: Add _require_filefrag_options() to check options for filefrag
authorXiao Yang <yangx.jy@cn.fujitsu.com>
Fri, 23 Nov 2018 05:24:23 +0000 (13:24 +0800)
committerEryu Guan <guaneryu@gmail.com>
Fri, 23 Nov 2018 06:25:01 +0000 (14:25 +0800)
commitc1cef1bd82a973e7d331593217e4b3f6c27aced4
treeec70ea1492d0b6df0dc6146a7c5c1c1a23a3704c
parent89e42dcda50f7bc01188d39308739400a393bcee
common/rc: Add _require_filefrag_options() to check options for filefrag

In generic/519, filefrag command use FIBMAP ioctl(-B option) to print
output in extent format(-e option) on purpose and sync file(-s option),
so add _require_filefrag_options() to check if the command supports
all of these options.

References:
1) filefrag supports -e option by commit 2508eaa since e2fsprogs v1.42.7.
2) filefrag supports -B option by commit 5d5e01d since e2fsprogs v1.41.9.
3) filefrag supports -s option by commit e62847c since e2fsprogs v1.41.6.

Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/rc
tests/generic/519