diff options
author | Pádraig Brady <P@draigBrady.com> | 2014-10-06 10:19:58 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2014-10-15 02:19:37 +0100 |
commit | eafa6ebf10924ec36cb5d28fd9d97a23de089bd0 (patch) | |
tree | 3ee55b7ececa569a813bad821b24ce1f9918a3fa /HACKING | |
parent | 759b0ac9e7f3fbd0f04090e3142087bf692e47bc (diff) | |
download | coreutils-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 'HACKING')
0 files changed, 0 insertions, 0 deletions