diff options
| author | Pádraig Brady <P@draigBrady.com> | 2009-08-26 00:32:43 +0100 |
|---|---|---|
| committer | Pádraig Brady <P@draigBrady.com> | 2009-08-29 00:24:49 +0100 |
| commit | 72f98388c36676e5c9ba6a72df5693c207862204 (patch) | |
| tree | f0f54bfdb3a16d87cd180226021de9a7570bd9e7 /src/mv.c | |
| parent | stdbuf: fix a small typo in --help output (diff) | |
| download | coreutils-72f98388c36676e5c9ba6a72df5693c207862204.tar.gz coreutils-72f98388c36676e5c9ba6a72df5693c207862204.zip | |
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.
Diffstat (limited to 'src/mv.c')
| -rw-r--r-- | src/mv.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -105,7 +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->reflink_mode = REFLINK_NEVER; x->dereference = DEREF_NEVER; x->unlink_dest_before_opening = false; x->unlink_dest_after_failed_open = false; |
