From 72f98388c36676e5c9ba6a72df5693c207862204 Mon Sep 17 00:00:00 2001 From: Pádraig Brady
Date: Wed, 26 Aug 2009 00:32:43 +0100 Subject: cp --reflink: add an "auto" parameter to fall back to a normal copy * doc/coreutils.texi (cp invocation): Document the new "auto" and "always" options to --reflink. * src/copy.c (copy_reg): Fall back to a standard copy when reflink() is not supported and --reflink=auto specified. * src/copy.h [struct cp_options] (reflink): Change type s/bool/enum/. * src/cp.c (usage): Describe the --reflink={always,auto} options and expand a little on what --reflink does. (main): parse the new parameters to --reflink and allow all --sparse options with --reflink=auto. * src/install.c (cp_option_init): Init the enum instead of bool. * src/mv.c (cp_option_init): Likewise. * tests/cp/reflink-auto: A new test for falling back to normal copy. * tests/Makefile.am: Reference the new test. * NEWS: Mention the new feature. --- NEWS | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index c3b2e989b..90721357b 100644 --- a/NEWS +++ b/NEWS @@ -13,6 +13,10 @@ GNU coreutils NEWS -*- outline -*- printing a summary to stderr. [bug introduced in coreutils-6.11] +** New features + + cp --reflink accepts a new "auto" parameter which falls back to + a standard copy if creating a copy-on-write clone is not possible. * Noteworthy changes in release 7.5 (2009-08-20) [stable] -- cgit v1.2.3-70-g09d2