Skip to content

Conversation

@bozaro
Copy link

@bozaro bozaro commented Jan 22, 2016

After this change CopyFile try make copy-on-write (constant time) file copy on BTRFS filesystem.
If copy-on-write operation is not supported - failback to byte-to-byte file copy.

This command works like:

cp --reflink=auto src.txt dst.txt

For this change I use https://github.com/wertarbyte/coreutils/blob/master/src/copy.c as reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant