Re: "diskutil info -plist" via Cocoa object?
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