4 ms·
$ rmlint -c sh:link -L -y s -p -T duplicates will produce a script which, if run, will hardlink duplicates
by svilen_dobrev 2y ago
$ rmlint -c sh:link -L -y s -p -T duplicates
will produce a script which, if run, will hardlink duplicates
- deleted 2y ago[deleted]
- Analemma_ 2y agoThat's not what this app is doing though. APFS clones are copy-on-write pointers to the same data, not hardlinks.
- phiresky 2y agoIf you replace `sh:link` with `sh:clone` instead, it will. > clone: reflink-capable filesystems only. Try to clone both files with the FIDEDUPERANGE ioctl(3p) (or BTRFS_IOC_FILE_EXTENT_SAME on older kernels). This will free up duplicate extents while preserving the metadata of both. Needs at least kernel 4.2.
- wpm 2y agoOn Linux