On Mar 26, 2014, at 5:05 AM, Fritz-Ulrich Siewert wrote:

> I'm writing an application to monitor disk i/o in OSX. Most work is done, but 
> now I'm stuck: I cannot find a way to distinguish between a real, physical 
> volume (i.e. the SSD and the hard disk in my fusion drive) and some mounted, 
> virtual volumes (i.e. an opened .dmg-file).

You can use the Disk Arbitration framework.  Check out the values in the 
dictionary returned from DADiskCopyDescription(), for example.  I'm not sure of 
the absolutely best key to use, but here DADeviceModel is "Disk Image", 
DADeviceProtocol is "Virtual Interface", and DAMediaName is "disk image".

Regards,
Ken


_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to