Disk Arbitration

RSS for tag

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

Posts under Disk Arbitration tag

24 Posts

Post

Replies

Boosts

Views

Activity

Programmatically recognize a disk image mounted from which dmg file
hdiutil command line could get a list of disk images, may I ask if there is any API performing the same? thank you. liz@macos-12 ~ % hdiutil info framework : 623.100.1 driver : 623.100.1 ================================================ image-path : /Users/liz/Downloads/Skype-8.90.0.407.dmg image-alias : /Users/liz/Downloads/Skype-8.90.0.407.dmg shadow-path : <none> icon-path : <none> image-type : read-only disk image system-image : false blockcount : 2048080 blocksize : 512 writeable : false autodiskmount : TRUE removable : TRUE image-encrypted : false mounting user : liz mounting mode : <unknown> process ID : 20600 framework name : DiskImages2 /dev/disk2 GUID_partition_scheme /dev/disk2s1 <GUID> /Volumes/Skype
1
0
1.5k
Dec ’22
[DiskArbitration] Is it possible to get the state of a Session?
It does not seem to be documented but, according to the DiskArbitration source code from Darwin, if an approval callback does not return after 10 seconds, the session state is set to timeout and further approval callbacks are never called anymore. Based on the source code, it does not seem possible but as I may be missing something: [Q] Is there a way to get/set the state of a DASessionRef or DAApprovalSessionRef? Would there be some kind of notification mechanism to be informed that a session has been set as timed out?
1
0
1.3k
Sep ’22
How do I programmatically mount an APFS encrypted device?
How do I programmatically mount an APFS encrypted device? If it is a normal device, Can be mounted using DADiskMount of Disk Arbitration Framework. However, in the case of APFS encryption, it will not be mounted even if DADiskMount is used in the same way. I think it requires a password to mount. Please tell me if there is a way to programmatically mount the APFS encrypted device. The language I'm currently using is Objective-C.
2
0
2.1k
Dec ’21
Programmatically recognize a disk image mounted from which dmg file
hdiutil command line could get a list of disk images, may I ask if there is any API performing the same? thank you. liz@macos-12 ~ % hdiutil info framework : 623.100.1 driver : 623.100.1 ================================================ image-path : /Users/liz/Downloads/Skype-8.90.0.407.dmg image-alias : /Users/liz/Downloads/Skype-8.90.0.407.dmg shadow-path : <none> icon-path : <none> image-type : read-only disk image system-image : false blockcount : 2048080 blocksize : 512 writeable : false autodiskmount : TRUE removable : TRUE image-encrypted : false mounting user : liz mounting mode : <unknown> process ID : 20600 framework name : DiskImages2 /dev/disk2 GUID_partition_scheme /dev/disk2s1 <GUID> /Volumes/Skype
Replies
1
Boosts
0
Views
1.5k
Activity
Dec ’22
[DiskArbitration] Is it possible to get the state of a Session?
It does not seem to be documented but, according to the DiskArbitration source code from Darwin, if an approval callback does not return after 10 seconds, the session state is set to timeout and further approval callbacks are never called anymore. Based on the source code, it does not seem possible but as I may be missing something: [Q] Is there a way to get/set the state of a DASessionRef or DAApprovalSessionRef? Would there be some kind of notification mechanism to be informed that a session has been set as timed out?
Replies
1
Boosts
0
Views
1.3k
Activity
Sep ’22
How do I programmatically mount an APFS encrypted device?
How do I programmatically mount an APFS encrypted device? If it is a normal device, Can be mounted using DADiskMount of Disk Arbitration Framework. However, in the case of APFS encryption, it will not be mounted even if DADiskMount is used in the same way. I think it requires a password to mount. Please tell me if there is a way to programmatically mount the APFS encrypted device. The language I'm currently using is Objective-C.
Replies
2
Boosts
0
Views
2.1k
Activity
Dec ’21