Disk Arbitration

RSS for tag

Provide mechanisms for registering for mount/unmount notification and blocking mount/unmount events using Disk Arbitration.

DiskArbitration Documentation

Posts under Disk Arbitration tag

2 Posts
Sort by:
Post not yet marked as solved
1 Replies
270 Views
Is there an API that allows mounting a volume, just like DADiskMount(), but that also accepts a password or automatically requests keychain access for encrypted volumes? Could be APFS or CoreStorage volumes. How do you mount those programmatically?
Posted Last updated
.
Post marked as solved
1 Replies
316 Views
There seems to be at least 3 possible APIs to detect the mounting of a volume on macOS: Endpoint Security APIs through the NOTIFY_MOUNT event. Disk Arbitration NSWorkspace notifications. If we omit NSWorkspace for different reasons (headless, background context), this leaves only 2 choices. From what I'm reading and understanding, the NOTIFY_MOUNT event is just telling that a volume is being mounted. It does not guarantee that the volume is mounted at the time of the event. So this seems to leave only Disk Arbitration. Since the Disk Arbitration API has been there for a long time, the question is: Is there a more modern API than Disk Arbitration to know when a volume has been mounted?
Posted Last updated
.