From 2f6a74920b38d48d46a73d7835cd53ce85d08fe7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?=
Date: Sat, 7 Jun 2025 14:27:59 +0100 Subject: [PATCH] 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 --- src/cp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 (_("\ -- 2.47.3