cp: accept the --reflink option
commita1d7469835371ded0ad8e3496bc5a5bebf94ccef
authorGiuseppe Scrivano <gscrivano@gnu.org>
Sat, 1 Aug 2009 17:36:48 +0000 (1 19:36 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 7 Aug 2009 15:14:22 +0000 (7 17:14 +0200)
tree925945606aa919b7b48603117db6f8ca15e7b551
parentff159a605e5bc10fe871109f66cba5ee410c9138
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.
NEWS
doc/coreutils.texi
src/copy.c
src/copy.h
src/cp.c
src/install.c
src/mv.c
tests/cp/sparse