From 5c3fd50a751a93acf5ad7bb69d01261267a53a1e Mon Sep 17 00:00:00 2001 From: Pádraig Brady Date: Fri, 4 Feb 2011 22:05:20 +0000 Subject: test: improve the cp fiemap tests * tests/cp/fiemap-2: Enable the fiemap check for files, which will enable the test for files on ext3. * tests/cp/fiemap-perf: Comment why we're not enabling for ext3. * tests/cp/sparse-fiemap: Ditto. Also sync the files before doing a fiemap which was needed for ext4 loop back at least. Add a comment that FIEMAP_FLAG_SYNC is ineffective, thus requiring the explicit syncs. * tests/fiemap-capable: A new python script to determine if a specified path supports fiemap. * tests/init.cfg (fiemap_capable_): Use the new python script. * tests/Makefile.am (EXTRA_DIST): Include the new python script. --- tests/cp/fiemap-perf | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/cp/fiemap-perf') diff --git a/tests/cp/fiemap-perf b/tests/cp/fiemap-perf index 7369a7d1b..dbb2a817a 100755 --- a/tests/cp/fiemap-perf +++ b/tests/cp/fiemap-perf @@ -20,6 +20,8 @@ print_ver_ cp # Require a fiemap-enabled FS. +# Note we don't check a file here as that could enable +# the test on ext3 where emulated extent scanning can be slow. fiemap_capable_ . \ || skip_ "this file system lacks FIEMAP support" -- cgit v1.2.3-70-g09d2