From: Chris Samuel <chris@csamuel.org>
To: linux-btrfs@vger.kernel.org
Subject: Re: A question about subvolumes
Date: Sun, 06 Jul 2014 09:49:09 +1000 [thread overview]
Message-ID: <1795423.Nv12ijGxhf@quad> (raw)
In-Reply-To: <53B8227A.30809@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 705 bytes --]
On Sat, 5 Jul 2014 12:06:18 PM Austin S Hemmelgarn wrote:
> I'm pretty certain that recent versions of the GNU Coreutils will
> automatically try a reflink for cp if the underlying filesystem is
> BTRFS. I'm not 100% certain about this as I've just aliases cp to 'cp
> --reflink=auto' on all my systems.
Doesn't appear to be the case in the current git I'm afraid.
http://git.savannah.gnu.org/cgit/coreutils.git/tree/src/cp.c
You could choose to patch cp.c to change:
x->reflink_mode = REFLINK_NEVER;
to:
x->reflink_mode = REFLINK_AUTO;
to change the default should you wish to.
All the best,
Chris
--
Chris Samuel : http://www.csamuel.org/ : Melbourne, VIC
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 482 bytes --]
prev parent reply other threads:[~2014-07-05 23:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-04 14:38 A question about subvolumes Bob Williams
2014-07-04 20:38 ` Goffredo Baroncelli
2014-07-04 21:06 ` Bob Williams
2014-07-05 6:27 ` Goffredo Baroncelli
2014-07-05 11:43 ` Bob Williams
2014-07-05 16:06 ` Austin S Hemmelgarn
2014-07-05 23:49 ` Chris Samuel [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1795423.Nv12ijGxhf@quad \
--to=chris@csamuel.org \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.