Re: Mounting Local Volumes
Re: Mounting Local Volumes
- Subject: Re: Mounting Local Volumes
- From: Alastair Houghton <email@hidden>
- Date: Sat, 7 Jul 2007 08:14:58 +0100
On 6 Jul 2007, at 23:57, Daniel Ellis wrote:
So I'm looking for a way to find the volume name from the device
node, much the way diskutil does. That way I can find the disk
node that correlates to the desired volume. I was thinking the
IOKit might provide some help, but cannot seem to find anything
concrete. I've heard that this is difficult, but any help would be
much appreciated.
Check out
http://developer.apple.com/documentation/Darwin/Reference/
DiscArbitrationFramework/DADisk/index.html
You can use DADiskCreateFromBSDName() to get a DADiskRef, then you
can look at the results of DADiskCopyDescription(), where I believe
you'll find the volume name (amongst other things).
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
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