• 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: Ken Thomases <email@hidden>
  • Date: Tue, 11 Oct 2011 21:58:40 -0500

On Oct 11, 2011, at 1:12 PM, Todd Heberlein wrote:

> I was looking at the rich information provided by diskutil:
>
> 	$ diskutil info -plist /Volumes/blah
>
> NSWorkspace has some of this information, but I was wondering if there is a Cocoa object that provides more of the information provided by diskutil.
>
> 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.

Look at the Disk Arbitration framework and the DADiskCopyDescription() function.  One of the keys in the description dictionary is kDADiskDescriptionDeviceProtocolKey ("DADeviceProtocol").  Another is kDADiskDescriptionDeviceInternalKey ("DADeviceInternal").

I just mentioned Apple's FSMegaInfo sample in another thread.  It can show you the output of DADiskCopyDescription().
https://developer.apple.com/library/mac/#samplecode/FSMegaInfo/Introduction/Intro.html

Cheers,
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: 
 >"diskutil info -plist" via Cocoa object? (From: Todd Heberlein <email@hidden>)

  • Prev by Date: Re: How to get mount options of a mounted volume?
  • Next by Date: Re: AVFoundation and kYUVSPixelFormat from AVPlayer
  • Previous by thread: "diskutil info -plist" via Cocoa object?
  • Next by thread: Re: "diskutil info -plist" via Cocoa object?
  • Index(es):
    • Date
    • Thread