diff options
| author | Paul Eggert <eggert@cs.ucla.edu> | 2024-05-16 23:30:33 -0700 |
|---|---|---|
| committer | Paul Eggert <eggert@cs.ucla.edu> | 2024-05-16 23:30:55 -0700 |
| commit | 52e024b7b78572091aee98b37958ceffc6432dca (patch) | |
| tree | c83df29a7441d19178c84b6266a77ee5158bdf85 /tests | |
| parent | maint: prefer stdbit.h to count-leading-zeros.h (diff) | |
| download | coreutils-52e024b7b78572091aee98b37958ceffc6432dca.tar.gz coreutils-52e024b7b78572091aee98b37958ceffc6432dca.zip | |
dd: skip some alloc tests on ZFS
* tests/dd/sparse.sh: Skip some tests on ZFS.
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/dd/sparse.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/dd/sparse.sh b/tests/dd/sparse.sh index 5194606aa..1ac1920ff 100755 --- a/tests/dd/sparse.sh +++ b/tests/dd/sparse.sh @@ -58,7 +58,10 @@ kb_alloc() { du -k "$1"|cut -f1; } # skip the remaining tests. On at least Solaris 10 with NFS, # file.in is reported to occupy <= 1KiB for about 50 seconds # after its creation. -if test $(kb_alloc file.in) -gt 3000; then +# Also, ZFS allocation reports can be delayed or off (problem +# observed on Ubuntu 23.10), so don’t trust this test on ZFS. +if test $(kb_alloc file.in) -gt 3000 && test "$(stat -f -c %T file.in)" != zfs +then # Ensure NUL blocks smaller than the *output* block size are not made sparse. # Here, with a 2MiB block size, dd's conv=sparse must *not* introduce a hole. |
