diff options
author | Pádraig Brady <P@draigBrady.com> | 2011-02-04 22:05:20 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2011-02-08 22:46:25 +0000 |
commit | 5c3fd50a751a93acf5ad7bb69d01261267a53a1e (patch) | |
tree | 4bfb77b4702a9068f774a9cb9fa9b64e4deec4a3 /tests/cp/fiemap-2 | |
parent | 480c0dc9e7c1890b11797c0e7704bd0e2e9821b7 (diff) | |
download | coreutils-5c3fd50a751a93acf5ad7bb69d01261267a53a1e.tar.xz |
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.
Diffstat (limited to 'tests/cp/fiemap-2')
-rwxr-xr-x | tests/cp/fiemap-2 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/cp/fiemap-2 b/tests/cp/fiemap-2 index a17076cc2..691ead255 100755 --- a/tests/cp/fiemap-2 +++ b/tests/cp/fiemap-2 @@ -20,7 +20,8 @@ print_ver_ cp # Require a fiemap-enabled FS. -fiemap_capable_ . \ +touch fiemap_chk # check a file rather than current dir for best coverage +fiemap_capable_ fiemap_chk \ || skip_ "this file system lacks FIEMAP support" # Exercise the code that handles a file ending in a hole. |