diff options
author | Giuseppe Scrivano <gscrivano@gnu.org> | 2009-08-01 19:36:48 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-08-07 17:14:22 +0200 |
commit | a1d7469835371ded0ad8e3496bc5a5bebf94ccef (patch) | |
tree | 925945606aa919b7b48603117db6f8ca15e7b551 /src/install.c | |
parent | ff159a605e5bc10fe871109f66cba5ee410c9138 (diff) | |
download | coreutils-a1d7469835371ded0ad8e3496bc5a5bebf94ccef.tar.xz |
cp: accept the --reflink option
* NEWS: Mention it.
* doc/coreutils.texi (cp invocation): Describe it.
* src/copy.h (struct cp_options) [reflink]: New member.
* src/copy.c (usage): Describe it.
(copy_reg): If reflink is true try to clone the file.
(main): Check for --reflink.
(cp_option_init): Initialize the new member.
* src/install.c (cp_option_init): Initialize the new member.
* src/mv.c (cp_option_init): Likewise.
* tests/cp/sparse: Add a new test case.
Diffstat (limited to 'src/install.c')
-rw-r--r-- | src/install.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/install.c b/src/install.c index fd8f71ef3..73b3981ef 100644 --- a/src/install.c +++ b/src/install.c @@ -269,6 +269,7 @@ cp_option_init (struct cp_options *x) { cp_options_default (x); x->copy_as_regular = true; + x->reflink = false; x->dereference = DEREF_ALWAYS; x->unlink_dest_before_opening = true; x->unlink_dest_after_failed_open = false; |