• 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: "diskutil info -plist" via Cocoa object?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "diskutil info -plist" via Cocoa object?


  • Subject: Re: "diskutil info -plist" via Cocoa object?
  • From: Greg Guerin <email@hidden>
  • Date: Tue, 11 Oct 2011 11:34:09 -0700

Todd Heberlein wrote:

If not, does anyone know how is diskutil getting this information? For example getfsstat(), statfs(), ...? I'm having troubles finding the equivalent of "BusProtocol" and "Internal" values in these structures.


BusProtocol is probably worked out from the device pathname (/dev/ something). That's in struct statfs as f_mntfromname.

There's probably some munging to turn that path into an IOKit node, and from that, one of the ancestor nodes would identify the bus. For example, look at the plist keys that contain "Device" as a prefix. The DeviceTreePath key has a value that identifies things like PCI and SATA (on my machine).

  -- GG

_______________________________________________

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


  • Prev by Date: Re: How to get mount options of a mounted volume
  • Next by Date: Re: Quandary : NSAppleScript ties up main thread
  • Previous by thread: Re: "diskutil info -plist" via Cocoa object?
  • Next by thread: Re: How to get mount options of a mounted volume
  • Index(es):
    • Date
    • Thread