• 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: Mount Point from BSDName / IORegistry
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mount Point from BSDName / IORegistry


  • Subject: Re: Mount Point from BSDName / IORegistry
  • From: Quinn <email@hidden>
  • Date: Tue, 24 Apr 2007 17:34:29 +0100

Hmmm, I just noticed that this didn't make it to the list...

At 11:45 +0200 19/4/07, devmaillists wrote:
Yes , I am looking for something I can from in Cocoa or CF.

Well, there's nothing to stop you from using BSD level APIs from either of these from Cocoa or CF. However, for a Cocoa app, the following might be considered a better match.


1. prefix the BSD name with "/dev/"

2. get array of local volumes using -[NSWorkspace mountedLocalVolumePaths]

3. iterate array calling statfs on each, stopping when you get one
   f_mntfromname field matches the value from step 1

S+E
--
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Mount Point from BSDName / IORegistry
      • From: devmaillists <email@hidden>
  • Prev by Date: Re: Mount Point from BSDName / IORegistry
  • Next by Date: Re: Mount Point from BSDName / IORegistry
  • Previous by thread: Re: Mount Point from BSDName / IORegistry
  • Next by thread: Re: Mount Point from BSDName / IORegistry
  • Index(es):
    • Date
    • Thread