Re: Mount Point from BSDName / IORegistry
Re: Mount Point from BSDName / IORegistry
- Subject: Re: Mount Point from BSDName / IORegistry
- From: Quinn <email@hidden>
- Date: Thu, 19 Apr 2007 10:27:05 +0100
At 10:38 +0200 19/4/07, devmaillists wrote:
I am looking for a way to find the Mount Point of a Volume given the
BSDName from the IORegistry.
There are numerous ways to do this, depending on what level you're
working at. The following is the lowest-level solution:
1. prefix the BSD name with "/dev/"
1. call <x-man-page://2/getfsstat>
2. iterate through array for a local volume (f_flags & MNT_LOCAL) mounted
on that device (f_mntfromname == the string from step 1)
If you'd like something more appropriate to your environment (File
Manager, Cocoa, Disk Arb), let me know.
Share and Enjoy
--
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