The APFS reference (https://developer.apple.com/support/downloads/Apple-File-System-Reference.pdf) mentions APFS volume roles, in particular System, Recovery, Preboot etc. (APFS_VOL_ROLE_SYSTEM, APFS_VOL_ROLE_RECOVERY, APFS_VOL_ROLE_PREBOOT) and I'm wondering what is the API function to query the role for a given APFS volume?
While testing Catalina, I noticed that some local snapshots now have suffix ".local" like this: com.apple.TimeMachine.2019-08-21-204446.local And I don't seem to be able to delete it with: tmutil deletelocalsnapshots 2019-08-21-204446 What are these snapshots and how to delete them? Any info would be appreciated!
In the above setup (boot Catalina from external disk), not only they are saved on a different volume, but also the different volume is located on a physically different device (internal disk), and the snapshots remain there and are discoverable even when the external startup disk is unmounted and physically ejected. I just tested the "normal"…
On Mojave, my app needs a way to determine if the user has already added the app to the "Full Disk Access" list in System Preferences. (And if not, instruct him to do so). So far I've been using the following empirical test: int c = open("/Library/Application Support/com.apple.TCC/TCC.db", O_RDONLY); if (c == -1 && (errno == EPERM || errno… Show more