Re: BSD device name and its mount point
Re: BSD device name and its mount point
- Subject: Re: BSD device name and its mount point
- From: Quinn <email@hidden>
- Date: Fri, 16 Nov 2007 14:58:01 +0000
At 18:40 +0400 16/11/07, Boris Remizov wrote:
I have a problem. How can I determine in the kernel mode the line
between a name of the BSD device, created by IOMediaBSDClient, and
its mount point (e.g. /Volumes/SomeDisk). It's no matter in the link
type:
/dev/xxx --> /Volumes/yyy, or
You should be able to go this way using vfs_iterate.
/Volumes/xxx --> /dev/yyy.
You should be able to go this way using vfs_getvfs_by_mntonname.
For a given mount_t, you can get the dev node on which it's mounted
by calling vfs_statfs and looking in f_mntfromname.
This assumes the volume is local (MNT_LOCAL). For non-local volumes,
f_mntfromname is pretty much meaningless, and you probably don't have
a IOMedia node anyway.
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