Skip to content

feat: added reflink support#6

Open
Silvenga wants to merge 1 commit into
nekocode:mainfrom
Silvenga:feat/copy-files-reflink
Open

feat: added reflink support#6
Silvenga wants to merge 1 commit into
nekocode:mainfrom
Silvenga:feat/copy-files-reflink

Conversation

@Silvenga

@Silvenga Silvenga commented Jul 1, 2026

Copy link
Copy Markdown

Adds reflink support for files that would be copied using copy_files. This is mostly beneficial to cross platform teams where a custom ln or cp command can't be easily made cross-platform.

Reflinking is almost always better than a normal copy, and doesn't have the limitations of symlink or hardlinks (same extents) - only reason you might not want to reflink - you can get into a state where you have more data on your filesystem then physical space (so defragmentation, say on btrfs, can run into issues, but that's generally a well known issue that btrfs users understand). ReFS on Windows (DevDrives) is noted as untested by the crate library - but I use it in my other projects (https://github.com/Silvenga/memocp) without issues (tested against ReFS).

I didn't update the README.zh-CN.md, feels bad when I can't read Chinese. Hopefully
my changes in ARCHITECTURE.md aren't absolute junk (felt good to add for future agents).

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