APFS (Apple File System) details
Thanks to a colleague, I became aware of APFS' capability of duplicating files as snapshots (i.e. without the snapshot "copy" occupying any space until one of the two "copies" being changed). This is a great capability.
Can anyone point me to a technical document about APFS, explaining more of the technical details ?
I do have some questions though:
1) Duplicating files: I am using the Finder's Command-D shortcut as well as the "Duplicate" right click. But it looks like a Command-C/Command-V combination has the same effect. Also dragging a file with Option. All seem to create file snapshots. Is this correct ?
Corollary question: is there a way to force a real full copy ?
2) Identifying snapshots: Is there a way to see which of the "copies" are snapshots and which one is the "original" copy ? The Finder Get Info command does not show any difference.
Corollary: Get Info on a directory containing a file and its N snapshots shows the total occupied size as N+1 times the original file. That makes it difficult to see actual disk space use ...
3) Operating system interface: I observe that
cp file1 file2
creates a full copy. But I also saw that when using the -c option, I get a "clone":
cp -c file1 file2
Is this using the APFS snapshot mechanism too ?
4) Updating files: What happens when I update any of the snapshots (or the original file). Say I only update one block of one of the file. Is this generating a full copy of the file ? Or just the modified blocks ?
MacBook Pro 13", macOS 10.13