pkolaczk / fclones

Efficient Duplicate File Finder
MIT License
1.91k stars 71 forks source link

Implement `fclones dedupe` command #80

Closed th1000s closed 2 years ago

th1000s commented 2 years ago

Deduplicate the underlying storage of files without making visible changes to the files themselves.

If a deduplicated file is later written, the affected blocks will first be copied (copy on write, or COW).

Currently only supported by the filesystems btrfs and XFS on Linux, and APFS on macOS.

Will not fall back to another method on failure.

pkolaczk commented 2 years ago

Ah, sorry, I was too fast. I tested it and I really liked changes ;) No worries will merge additional fixups. Btw: Format check is failing again. Can you see the build-test / lint / format statuses separately now?

th1000s commented 2 years ago

No problem :) And yes, the individual build steps are now visible.

I added tests which expect reflink to fail, moved them into reflink.rs, and disabled the untested windows support.