From a1d7469835371ded0ad8e3496bc5a5bebf94ccef Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Sat, 1 Aug 2009 19:36:48 +0200 Subject: 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. --- src/mv.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mv.c') diff --git a/src/mv.c b/src/mv.c index 8b9b6a111..8d77380ac 100644 --- a/src/mv.c +++ b/src/mv.c @@ -105,6 +105,7 @@ cp_option_init (struct cp_options *x) cp_options_default (x); x->copy_as_regular = false; /* FIXME: maybe make this an option */ + x->reflink = false; x->dereference = DEREF_NEVER; x->unlink_dest_before_opening = false; x->unlink_dest_after_failed_open = false; -- cgit v1.2.3-54-g00ecf