cp -c on macOS Can Silently Fall Back to a Full Copy, Not an APFS Clone
A fast copy on macOS does not guarantee that APFS created a clone, since the cp -c command can produce an ordinary full copy and still exit successfully. Apple's cp manual documents a fallback to copyfile when the source and destination are on different filesystems or the destination does not support cloning. The author explains that a successful exit status only shows a usable destination file exists, not whether data blocks were shared. Standard tools like stat, cmp, and df each answer different questions and cannot alone prove block sharing. Distinguishing hard links, clones, and independent copies requires careful interpretation of inode numbers and link counts, and per-file block counts can be misleading.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in