• 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: Mounting Local Volumes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Mounting Local Volumes (From: "Daniel Ellis" <email@hidden>)

  • Prev by Date: Access Obj-C method/attribute from a C method
  • Next by Date: Re: Access Obj-C method/attribute from a C method
  • Previous by thread: Mounting Local Volumes
  • Next by thread: Re: Mounting Local Volumes
  • Index(es):
    • Date
    • Thread