diff options
author | Pádraig Brady <P@draigBrady.com> | 2011-02-11 08:55:22 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2011-04-01 15:04:18 +0100 |
commit | bfdb6b585b6842362977b8c10fe7858fb96a1dd0 (patch) | |
tree | 0279e6e1674d34072ba8e7bf94ba929f332e54e4 /NEWS | |
parent | b56b53bd70b1f8fa2b5a95d4569bb72a2419b5cd (diff) | |
download | coreutils-bfdb6b585b6842362977b8c10fe7858fb96a1dd0.tar.xz |
copy: process empty extents more efficiently
* src/copy.c (extent_copy): Treat an allocated but empty extent
much like a hole. I.E. don't read data we know is going to be NUL.
Also we convert the empty extent to a hole only when SPARSE_ALWAYS
so that the source and dest have the same allocation. This will
be improved soon, when we use fallocate() to do the allocation.
* tests/cp/fiemap-empty: A new test for efficiency and correctness
of copying empty extents.
* tests/Makefile.am: Reference the new test.
* NEWS: Mention the change in behavior.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -40,6 +40,10 @@ GNU coreutils NEWS -*- outline -*- The sync in only needed on Linux kernels before 2.6.38. [The sync was introduced in coreutils-8.10] + cp now copies empty extents efficiently, when doing a FIEMAP copy. + It no longer reads the zero bytes from the input, and also can efficiently + create a hole in the output file when --sparse=always is specified. + df now aligns columns consistently, and no longer wraps entries with longer device identifiers, over two lines. |