DiskArbitration and APFS container recognition

DADiskCopyDescription() give basic information for disk and partition but not how these info elements are linked together.

By example how to get the volume parent container ?

How to decode de CFSTR given by DADiskCopyDescription() ?

When does DAMediaContent hold "GUID_partition_scheme" or "FDisk_partition_scheme" ?

For volume DAMediaContent is something like "C12A7328-F81F-11D2-BA4B-00A0C93EC93B" (with volume name in DAMediaName).

But DAMediaContent with such numeric value is not always volume (DAMediaName and DAVolumeKind are then empty).

And sometime DAMediaContent is empty.

Where can I found documentation about DADiskCopyDescription() and the way to get APFS volume\container childs and parent

I'm also interested in getting the child APFS volume/container bsd disk name given an APFS physical bsd disk name. Were you able to figure this out?

DiskArbitration and APFS container recognition
 
 
Q