Re: IOKit / OSX: How can I distinguish between "real hard disk" and mounted images?
Re: IOKit / OSX: How can I distinguish between "real hard disk" and mounted images?
- Subject: Re: IOKit / OSX: How can I distinguish between "real hard disk" and mounted images?
- From: Ken Thomases <email@hidden>
- Date: Thu, 24 Apr 2014 11:57:52 -0500
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@hidden)
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:
This email sent to email@hidden