summaryrefslogtreecommitdiff
path: root/tests/cp/Makefile.am
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2006-08-19 14:01:29 +0000
committerJim Meyering <jim@meyering.net>2006-08-19 14:01:29 +0000
commitb35bd50ce62fbb98984560177198b94a7de46d00 (patch)
tree9bab2c61e3f66c9d2589b99debcb979e88d68a12 /tests/cp/Makefile.am
parent5f57935678613334bfa18ee547cb1f22a3a0a7dd (diff)
downloadcoreutils-b35bd50ce62fbb98984560177198b94a7de46d00.tar.xz
* NEWS: Fix cp --sparse so that it preserves tail-end sparseness, even
when the file's apparent size is not a multiple of its block size. * src/copy.c (copy_reg): Don't write a NUL before calling ftruncate. For some file sizes, writing that single byte would unnecessarily waste a few file blocks. That write may have been necessary in the early days of Linux, but now, removing it should be safe. Based on a patch by Alan Curry: <http://bugs.debian.org/370792> * tests/cp/sparse: New test for the above. * tests/cp/Makefile.am (TESTS): Add sparse. * tests/sparse-file: New file, essence factored out of... * tests/du/8gb: ... here. Use the new script.
Diffstat (limited to 'tests/cp/Makefile.am')
-rw-r--r--tests/cp/Makefile.am1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/cp/Makefile.am b/tests/cp/Makefile.am
index 1a4aa84f4..5b4c23606 100644
--- a/tests/cp/Makefile.am
+++ b/tests/cp/Makefile.am
@@ -21,6 +21,7 @@
AUTOMAKE_OPTIONS = 1.1 gnits
TESTS = \
+ sparse \
link-no-deref \
cp-deref \
acl \