]> git.ipfire.org Git - thirdparty/coreutils.git/commit
mv: use reflink=auto mode by default
authorDavid Sterba <dsterba@suse.cz>
Wed, 24 Sep 2014 10:15:05 +0000 (11:15 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 24 Sep 2014 10:48:22 +0000 (11:48 +0100)
commitb47231be6813e6cb5305266e391b4bb745f27f13
tree900dfc6c3b435477621b73cc3898cc950b41203b
parent1ff4d088927147fa1587770fdbf8aea675fc3788
mv: use reflink=auto mode by default

On some filesystems (BTRFS), moving a file within the filesystem may
cross subvolume boundaries and we can use a lightweight reflink copy,
similar to what cp(1) can do, which is faster than a full file copy.
This is enabled by default because it's only an optimization for
the fall back copy and does not break user expectations or usability.

* src/mv.c (cp_option_init): Set the reflink mode to AUTO.
* NEWS: Mention the improvement.
NEWS
src/mv.c