From: Pádraig Brady
Date: Sat, 7 Jun 2025 13:27:59 +0000 (+0100) Subject: doc: cp --help: mention --reflink=auto is now the default X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f6a74920b38d48d46a73d7835cd53ce85d08fe7;p=thirdparty%2Fcoreutils.git doc: cp --help: mention --reflink=auto is now the default * src/cp.c (usage): Reword the REFLINK description to indicate that --reflink=auto is the default. Fixes https://github.com/coreutils/coreutils/issues/103 --- diff --git a/src/cp.c b/src/cp.c index a0ec067147..57450dbd45 100644 --- 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 (_("\