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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: coreutils; Severity: wishlist; Reported by: Paul Eggert <eggert@HIDDEN>; dated Fri, 9 Sep 2016 22:55:01 UTC; Maintainer for coreutils is bug-coreutils@HIDDEN.
Severity set to 'wishlist' from 'normal' Request was from Assaf Gordon <assafgordon@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 24400 <at> debbugs.gnu.org:


Received: (at 24400) by debbugs.gnu.org; 11 Sep 2016 02:18:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 10 22:18:30 2016
Received: from localhost ([127.0.0.1]:55870 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1biuLm-0004Dp-2t
	for submit <at> debbugs.gnu.org; Sat, 10 Sep 2016 22:18:30 -0400
Received: from zimbra.cs.ucla.edu ([131.179.128.68]:45860)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eggert@HIDDEN>) id 1biuLl-0004DW-1Z
 for 24400 <at> debbugs.gnu.org; Sat, 10 Sep 2016 22:18:29 -0400
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id BD7D3160D51;
 Sat, 10 Sep 2016 19:18:23 -0700 (PDT)
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032)
 with ESMTP id z44cqbGO86Ua; Sat, 10 Sep 2016 19:18:23 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 19F351611ED;
 Sat, 10 Sep 2016 19:18:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id OEVfaZPtIA1f; Sat, 10 Sep 2016 19:18:23 -0700 (PDT)
Received: from [192.168.1.9] (unknown [100.32.155.148])
 by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id F0CC71611EA;
 Sat, 10 Sep 2016 19:18:22 -0700 (PDT)
Subject: Re: bug#24400: cp: default to --reflink=auto?
To: =?UTF-8?Q?P=c3=a1draig_Brady?= <P@HIDDEN>, 24400 <at> debbugs.gnu.org
References: <4c0ff2a7-d511-4e23-a0a4-c0591f1c053f@HIDDEN>
 <57D3D875.8070406@HIDDEN>
From: Paul Eggert <eggert@HIDDEN>
Organization: UCLA Computer Science Department
Message-ID: <53c43ffa-e2bc-29e2-c08a-c98f53c20332@HIDDEN>
Date: Sat, 10 Sep 2016 19:18:22 -0700
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.2.0
MIME-Version: 1.0
In-Reply-To: <57D3D875.8070406@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: 24400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.3 (-)

P=C3=A1draig Brady wrote:
> 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?

Sure, there's no rush, we can leave this bug open.

I just now installed a similar change into Emacs for its copy-file functi=
on,=20
into the master branch that is (i.e., the release after next).




Information forwarded to bug-coreutils@HIDDEN:
bug#24400; Package coreutils. Full text available.

Message received at 24400 <at> debbugs.gnu.org:


Received: (at 24400) by debbugs.gnu.org; 10 Sep 2016 09:55:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 10 05:55:07 2016
Received: from localhost ([127.0.0.1]:55140 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bif07-0004dX-EC
	for submit <at> debbugs.gnu.org; Sat, 10 Sep 2016 05:55:07 -0400
Received: from mail.magicbluesmoke.com ([82.195.144.49]:37622)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <P@HIDDEN>) id 1bif05-0004dP-MH
 for 24400 <at> debbugs.gnu.org; Sat, 10 Sep 2016 05:55:06 -0400
Received: from [192.168.1.80] (unknown [109.76.68.5])
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (No client certificate requested)
 by mail.magicbluesmoke.com (Postfix) with ESMTPSA id 3883910B;
 Sat, 10 Sep 2016 10:55:02 +0100 (IST)
Subject: Re: bug#24400: cp: default to --reflink=auto?
To: Paul Eggert <eggert@HIDDEN>, 24400 <at> debbugs.gnu.org
References: <4c0ff2a7-d511-4e23-a0a4-c0591f1c053f@HIDDEN>
From: =?UTF-8?Q?P=c3=a1draig_Brady?= <P@HIDDEN>
Message-ID: <57D3D875.8070406@HIDDEN>
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
MIME-Version: 1.0
In-Reply-To: <4c0ff2a7-d511-4e23-a0a4-c0591f1c053f@HIDDEN>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 24400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.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





Information forwarded to bug-coreutils@HIDDEN:
bug#24400; Package coreutils. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 9 Sep 2016 22:54:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 09 18:54:49 2016
Received: from localhost ([127.0.0.1]:54976 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1biUh7-0005Yx-2y
	for submit <at> debbugs.gnu.org; Fri, 09 Sep 2016 18:54:49 -0400
Received: from eggs.gnu.org ([208.118.235.92]:33448)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eggert@HIDDEN>) id 1biUh5-0005Yl-Ck
 for submit <at> debbugs.gnu.org; Fri, 09 Sep 2016 18:54:47 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eggert@HIDDEN>) id 1biUgz-0001s1-Hw
 for submit <at> debbugs.gnu.org; Fri, 09 Sep 2016 18:54:42 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:46248)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <eggert@HIDDEN>) id 1biUgz-0001re-EV
 for submit <at> debbugs.gnu.org; Fri, 09 Sep 2016 18:54:41 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:52647)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <eggert@HIDDEN>) id 1biUgx-0002ku-Bf
 for bug-coreutils@HIDDEN; Fri, 09 Sep 2016 18:54:40 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eggert@HIDDEN>) id 1biUgt-0001pq-9v
 for bug-coreutils@HIDDEN; Fri, 09 Sep 2016 18:54:38 -0400
Received: from zimbra.cs.ucla.edu ([131.179.128.68]:43986)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <eggert@HIDDEN>) id 1biUgt-0001pl-3x
 for bug-coreutils@HIDDEN; Fri, 09 Sep 2016 18:54:35 -0400
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id A12A4160195
 for <bug-coreutils@HIDDEN>; Fri,  9 Sep 2016 15:54:33 -0700 (PDT)
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032)
 with ESMTP id F7QJ4D4wFylt for <bug-coreutils@HIDDEN>;
 Fri,  9 Sep 2016 15:54:33 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id F27A116123D
 for <bug-coreutils@HIDDEN>; Fri,  9 Sep 2016 15:54:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id ktkGrcx1F3c8 for <bug-coreutils@HIDDEN>;
 Fri,  9 Sep 2016 15:54:32 -0700 (PDT)
Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200])
 by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id DB8E0160195
 for <bug-coreutils@HIDDEN>; Fri,  9 Sep 2016 15:54:32 -0700 (PDT)
To: bug-coreutils@HIDDEN
From: Paul Eggert <eggert@HIDDEN>
Subject: cp: default to --reflink=auto?
Organization: UCLA Computer Science Department
Message-ID: <4c0ff2a7-d511-4e23-a0a4-c0591f1c053f@HIDDEN>
Date: Fri, 9 Sep 2016 15:54:32 -0700
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.2.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

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?





Acknowledgement sent to Paul Eggert <eggert@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-coreutils@HIDDEN. Full text available.
Report forwarded to bug-coreutils@HIDDEN:
bug#24400; Package coreutils. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 28 Oct 2018 06:45:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.