bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#24400: cp: default to --reflink=auto?


From: Pádraig Brady
Subject: bug#24400: cp: default to --reflink=auto?
Date: Sat, 10 Sep 2016 10:55:01 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

On 09/09/16 23:54, Paul Eggert wrote:
> Currently 'cp' defaults to not using reflinks, which can be 
> significantly slower on a system that supports file cloning. I expect 
> most users would prefer 'cp' to default to --reflink=auto for spped. 
> Although there are some special cases otherwise, on balance how about if 
> we change cp to default to --reflink=auto, and add an option 
> --reflink=no for users who prefer the current default?

Up until now we didn't do that so that we actually get a data copy.
I.E. traditionally such copies were more resilient to partial hardware failures.
However depending on the underlying hardware (which may do deduplication)
we're not guaranteed that an actual copy is made.
In discussions with kernel devs about this (in relation to efficient defaults
for copy_file_range), their current thinking is that separate devices are
required to give such guarantees, so reflinking by default is a valid
thing to do.

It might not be an appropriate thing to do in a minor release.
We're due one of those quite soon now, so I'd suggest waiting
a short while before changing?

thanks,
Pádraig






reply via email to

[Prev in Thread] Current Thread [Next in Thread]