pkolaczk / fclones

Efficient Duplicate File Finder
MIT License
1.83k stars 70 forks source link

macOS - '/System/Volumes/Data' DiskDevice path remapping #160

Closed kapitainsky closed 1 year ago

kapitainsky commented 1 year ago

Fixes https://github.com/pkolaczk/fclones/issues/158

On macOS APFS disk all users' data is mounted in '/System/Volumes/Data' but fused transparently using firmlinks and presented as part of the root filesystem. It requires remapping Data volume path for this DiskDevice to '/' in order for fclones correctly recognise device deduplicated files are on.

Ref:

https://www.swiftforensics.com/2019/10/macos-1015-volumes-firmlink-magic.html

https://eclecticlight.co/2020/01/23/catalina-boot-volumes/

kapitainsky commented 1 year ago

Let me know what you think.

kapitainsky commented 1 year ago

This is my first rust code ever - so I expect some critisism:)

kapitainsky commented 1 year ago

I see it failed tests:( Will try to fix it.

kapitainsky commented 1 year ago

needs fixes