Re:Hyperspace
by CharlesW on Tuesday February 25, 2025 @11:40AM
(#43174143)
[I was wrong, see below.—cw] It doesn't do the same thing. An APFS clone/copy-on-write clone is not the same as a hard or soft link. https://eclecticlight.co/2019/01/05/aliases-hard-links-symli...
[ Parent
| on HN ]
Re:Hyperspace
by PenguinRevolver on Tuesday February 25, 2025 @11:51AM
(#43174299)
Your source points out that:
< You can also create [APFS (copy on write) clones] in Terminal using the command `cp -c oldfilename newfilename` where the c option requires cloning rather than a regular copy.
`fclones dedupe` uses the same command[1]:
if cfg!(target_os = "macos") {
result.push(format!("cp -c {target} {link}"));
[1] https://github.com/pkolaczk/fclones/blob/555cde08fde4e700b25...