Re: Mount Point from BSDName / IORegistry
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