Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add copy-on-write support for BTRFS filesystem #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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