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 reflinking mode for deduplication #70

Closed
lvd2 opened this issue Mar 4, 2021 · 2 comments
Closed

Add reflinking mode for deduplication #70

lvd2 opened this issue Mar 4, 2021 · 2 comments
Labels
duplicate This issue or pull request already exists enhancement New feature or request

Comments

@lvd2
Copy link

lvd2 commented Mar 4, 2021

cp command has an option to make reflinks (for example: cp -ra --reflink=always) instead of hardlinks. Reflinks are only available on copy-on-write filesystems like btrfs or zfs.

Reflinking means that two files will have identical data blocks up to the moment when any of them will be changed, then copy-on-write mechanins will duplicate changed data blocks for each file.

Hardlinking is just when two filenames point to same physical file, changing one of them means changing another 'magically'

So the issue is about adding reflinking deduplication mechanism to the rdfind.

@thlor
Copy link

thlor commented May 15, 2021

This would be very useful!

@pauldreik pauldreik added enhancement New feature or request duplicate This issue or pull request already exists labels Aug 12, 2021
@pauldreik
Copy link
Owner

I agree this would be useful. I looked into how cp implemented it, a few years ago. I think it was a bit complicated. I will put this as a duplicate of #17 as it is closely related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants