Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 498162

Summary: sys-apps/coreutils - enable cp --reflink=auto by default
Product: Gentoo Linux Reporter: poncho <poncho>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED UPSTREAM    
Severity: enhancement CC: phil.tooley, sam
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description poncho 2014-01-15 11:20:12 UTC
would you be willing to add an reflink useflag to enable reflink=auto by default?

--- coreutils-8.21/src/cp.c~    2013-06-22 21:50:26.265639114 +0100
+++ coreutils-8.21/src/cp.c     2013-06-22 21:51:06.880513924 +0100
@@ -775,7 +775,7 @@ cp_option_init (struct cp_options *x)
   x->interactive = I_UNSPECIFIED;
   x->move_mode = false;
   x->one_file_system = false;
-  x->reflink_mode = REFLINK_NEVER;
+  x->reflink_mode = REFLINK_AUTO;

   x->preserve_ownership = false;
   x->preserve_links = false;

see https://unix.stackexchange.com/questions/80351/why-is-cp-reflink-auto-not-the-default-behaviour

Reproducible: Always
Comment 1 SpanKY gentoo-dev 2014-01-16 01:37:25 UTC
this is a matter for upstream.  they can be reached at bug-coreutils@gnu.org.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-26 07:36:19 UTC
*** Bug 528316 has been marked as a duplicate of this bug. ***
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-26 07:36:27 UTC
This was done in coreutils 9.0.