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 options to keep/avoid reflink'ed file duplicates #328

Open
Fat-Zer opened this issue Jan 2, 2019 · 2 comments
Open

Add options to keep/avoid reflink'ed file duplicates #328

Fat-Zer opened this issue Jan 2, 2019 · 2 comments
Labels

Comments

@Fat-Zer
Copy link
Contributor

Fat-Zer commented Jan 2, 2019

It would be nice to have some options for reflinks to avoid them from listing in output. The options should behaves pretty much the same as options as those hardlinks counterparts (--keep-hardlinked and --no-hardlinked) but rely on reflink --is-reflink logic rather than inode number.

@SeeSpotRun
Copy link
Collaborator

Should be possible. I don't have much time at the moment but will try to get back to this in a few weeks.

@sahib sahib added the feature label Jan 4, 2019
@SeeSpotRun
Copy link
Collaborator

Two-and-a-bit years later...

Feel free to try out https://github.com/SeeSpotRun/rmlint/tree/feature/keep_reflinked

Main additional feature is that existing reflinks (above a configurable size) are identified prior to hashing. This should significantly speed things up if files are already reflinked.

When used in combination with -c sh:clone it will emit a shell script which, for existing reflinks, outputs
skip_reflink <orig> <clone>
for existing reflinks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants