Re: A question about subvolumes

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

 



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: signature.asc
Description: This is a digitally signed message part.


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux