• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: IOKit / OSX: How can I distinguish between "real hard disk" and mounted images?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >IOKit / OSX: How can I distinguish between "real hard disk" and mounted images? (From: Fritz-Ulrich Siewert <email@hidden>)

  • Prev by Date: Re: Good idea/bad idea?
  • Next by Date: Re: Good idea/bad idea?
  • Previous by thread: IOKit / OSX: How can I distinguish between "real hard disk" and mounted images?
  • Next by thread: Problem with distributed objects in GUI cocoa apps
  • Index(es):
    • Date
    • Thread