Dev:Mounting APFS

APFS is a file system developed and deployed by Apple Inc..

Mounting APFS requires pointer to data specific to apfs to be passed to the fourth argument of. The struct for this data is supposedly available in, but this header is not public.

Mounting Live FS
To mount  onto   in read-write mode:

To mount  onto   in read-only mode:
 * Setting  is not required for the mount to go through (0 works), but   does it.

Mounting snapshot
To mount the default snapshot  of   onto  :

To mount a custom snapshot named :

Update mount
To remount an APFS volume  mounted at   as read-write:
 * can actually be arbitrary values, which allows for spoofing source volumes.