Jim Meyering
b35bd50ce6
* 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.
2006-08-19 14:01:29 +00:00
..
2006-08-09 20:23:07 +00:00
2006-07-14 17:54:54 +00:00
2006-03-26 11:59:58 +00:00
2006-08-17 09:50:24 +00:00
2006-06-08 20:13:37 +00:00
2006-07-27 09:11:08 +00:00
2006-07-17 03:09:26 +00:00
2006-01-17 17:26:15 +00:00
2006-07-27 09:11:08 +00:00
2006-08-19 14:01:29 +00:00
2005-12-17 10:43:12 +00:00
2006-05-15 20:19:02 +00:00
2006-08-10 20:53:32 +00:00
2006-07-09 17:08:55 +00:00
2006-01-08 20:45:54 +00:00
2006-08-16 19:36:46 +00:00
2006-08-15 23:41:24 +00:00
2006-07-09 17:08:55 +00:00
2006-08-17 19:58:17 +00:00
2006-08-17 19:58:17 +00:00
2006-05-20 07:19:53 +00:00
2006-07-09 17:08:55 +00:00
2006-07-09 17:02:53 +00:00
2006-06-08 02:53:25 +00:00
2006-08-17 19:58:17 +00:00
2006-07-09 17:03:20 +00:00
2006-07-09 17:08:55 +00:00
2006-01-31 01:38:30 +00:00
2006-07-17 03:09:49 +00:00
2006-07-09 17:05:33 +00:00
2005-12-28 10:22:41 +00:00
2006-07-01 07:04:52 +00:00
2006-08-17 15:46:56 +00:00
2006-08-08 22:19:03 +00:00
2006-08-15 12:05:34 +00:00
2006-08-16 19:36:46 +00:00
2006-07-17 03:10:10 +00:00
2006-07-17 03:10:29 +00:00
2006-07-17 03:11:01 +00:00
2006-03-26 12:07:34 +00:00
2005-12-28 10:22:41 +00:00
2006-04-12 07:37:11 +00:00
2006-03-23 23:56:34 +00:00
2006-07-09 17:08:55 +00:00
2006-07-09 17:06:06 +00:00
2006-07-09 17:08:55 +00:00
2006-07-09 17:06:35 +00:00
2006-07-09 17:04:06 +00:00
2006-07-09 17:08:55 +00:00
2006-07-03 17:38:20 +00:00
2006-02-20 12:48:11 +00:00
2006-07-01 00:07:06 +00:00
2006-04-12 20:14:19 +00:00
2006-08-13 21:21:52 +00:00
2006-08-09 18:07:43 +00:00
2005-12-28 10:22:41 +00:00
2006-08-08 22:20:12 +00:00
2006-03-26 12:08:10 +00:00
2006-08-18 18:36:04 +00:00
2006-07-21 13:32:40 +00:00
2006-08-18 18:12:47 +00:00
2006-08-17 19:58:17 +00:00
2006-04-11 00:52:01 +00:00
2006-07-01 23:50:15 +00:00
2006-06-22 12:50:32 +00:00
2006-07-09 17:08:55 +00:00
2006-07-09 17:04:48 +00:00
2006-08-17 19:58:17 +00:00
2006-07-09 17:05:13 +00:00
2006-07-09 17:08:55 +00:00
2005-12-28 10:22:41 +00:00
2006-08-16 19:36:46 +00:00
2006-07-09 17:08:55 +00:00
2006-08-17 19:58:17 +00:00