summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2014-10-06 10:19:58 +0100
committerPádraig Brady <P@draigBrady.com>2014-10-15 02:19:37 +0100
commiteafa6ebf10924ec36cb5d28fd9d97a23de089bd0 (patch)
tree3ee55b7ececa569a813bad821b24ce1f9918a3fa /NEWS
parent759b0ac9e7f3fbd0f04090e3142087bf692e47bc (diff)
downloadcoreutils-eafa6ebf10924ec36cb5d28fd9d97a23de089bd0.tar.xz
cp: avoid speculative preallocation with --sparse=always
With --sparse=always use fallocate(...PUNCH_HOLE...) to avoid any permanent allocation due to speculative preallocation employed by file systems such as XFS. * m4/jm-macros.m4: Check for <linux/falloc.h> and fallocate(). * src/copy.c (punch_hole): A new function to try and punch a hole at the specified offset if supported. (create_hole): Call punch_hole() after requesting a hole. (extent_copy): Likewise. * NEWS: Mention the improvement.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS2
1 files changed, 1 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 700707039..e7aef7725 100644
--- a/NEWS
+++ b/NEWS
@@ -34,7 +34,7 @@ GNU coreutils NEWS -*- outline -*-
** Improvements
cp,install,mv will convert smaller runs of NULs in the input to holes,
- to reduce allocation in the copy.
+ and cp --sparse=always avoids speculative preallocation on XFS for example.
mv will try a reflink before falling back to a standard copy, which is
more efficient when moving files across BTRFS subvolume boundaries.