]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
doc: cp --help: mention --reflink=auto is now the default
authorPádraig Brady <P@draigBrady.com>
Sat, 7 Jun 2025 13:27:59 +0000 (14:27 +0100)
committerPádraig Brady <P@draigBrady.com>
Sat, 7 Jun 2025 17:53:43 +0000 (18:53 +0100)
* src/cp.c (usage): Reword the REFLINK description to
indicate that --reflink=auto is the default.
Fixes https://github.com/coreutils/coreutils/issues/103

src/cp.c

index a0ec067147221d827085c32a0e4b2fb81caccd96..57450dbd45cd2d822aa0faa4dbc6e3d177773a3c 100644 (file)
--- a/src/cp.c
+++ b/src/cp.c
@@ -267,10 +267,10 @@ Use --sparse=never to inhibit creation of sparse files.\n\
       emit_update_parameters_note ();
       fputs (_("\
 \n\
-When --reflink[=always] is specified, perform a lightweight copy, where the\n\
-data blocks are copied only when modified.  If this is not possible the copy\n\
-fails, or if --reflink=auto is specified, fall back to a standard copy.\n\
-Use --reflink=never to ensure a standard copy is performed.\n\
+By default or with --reflink=auto, cp will try a lightweight copy, where the\n\
+data blocks are copied only when modified, falling back to a standard copy\n\
+if this is not possible.  With --reflink[=always] cp will fail if CoW is not\n\
+supported, while --reflink=never ensures a standard copy is performed.\n\
 "), stdout);
       emit_backup_suffix_note ();
       fputs (_("\