linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Should cp default to reflink?
@ 2017-11-06 22:37 Chris Murphy
  2017-11-07  4:56 ` Marat Khalili
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Chris Murphy @ 2017-11-06 22:37 UTC (permalink / raw)
  To: Btrfs BTRFS

I'm doing copies from one subvolume to another, through a mounted top
level (id5) at /mnt/int.

This copies the whole file conventionally (no shared extents)
$ sudo cp /mnt/int/home/chris/Downloads/Fedora-Server-dvd-x86_64-27-1.6.iso
/mnt/int/root00/var/lib/libvirt/images/

This is a reflink copy
$ sudo cp --reflink
/mnt/int/home/chris/Downloads/Fedora-Server-dvd-x86_64-27-1.6.iso
/mnt/int/root00/var/lib/libvirt/images/

This is also a refink copy, with the original removed.
$ sudo mv /mnt/int/home/chris/Downloads/Fedora-Server-dvd-x86_64-27-1.6.iso
/mnt/int/root00/var/lib/libvirt/images/

Seems to me any request to duplicate should be optimized by default
with an auto reflink when possible, and require an explicit option to
inhibit.


-- 
Chris Murphy

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-11-07 12:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-06 22:37 Should cp default to reflink? Chris Murphy
2017-11-07  4:56 ` Marat Khalili
2017-11-07 12:30 ` Austin S. Hemmelgarn
2017-11-07 12:51 ` Dmitrii Tcvetkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).