Should cp default to reflink?

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

 



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
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[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