4 ms·
The `-c` flag enables a fast "clone" of the file on APFS, Apple's current filesystem. That operation is very fast, as it is like a directory entry adding anoth
by watersb 2y ago
The `-c` flag enables a fast "clone" of the file on APFS, Apple's current filesystem.
That operation is very fast, as it is like a directory entry adding another pointer to the existing data. But unlike a simple "hard link", any future modifications to this clone will write distinct data blocks to.the filesystem: the original and the clone are independent files, they just share any blocks that store data in common.
- beardyw 2y agoIn what context would you not want that?
- compressedgas 2y agoIn a related context Pádraig Brady writes: > For robustness reasons one may want a copy to take place to protect against data corruption. Also for performance reasons you may want the writes to happen at copy time rather than some latency sensitive process working on a CoW file and being delayed by the writes possibly to a different part of a mechanical disk. https://unix.stackexchange.com/questions/80351/why-is-cp-reflink-auto-not-the-default-behaviour https://unix.stackexchange.com/questions/80351/why-is-cp-ref...