Making an APFS disk clone

Hi all,


I am attempting to make an application that makes a clone (a writable snapshot).


I believe the correct way to do this would be to pass the

O_CLONE

flag to fs_snapshot_create, however, this seems to not be working - the snapshot is still read-only.


Note: the issue is not the entiltement needed to run this, it just does not allow me to write files to the clone, and panicks.


Thanks!

Replies

the issue is not the entiltement needed to run this

Does that mean you’ve been granted the special entitlement required to create snapshots?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"