• 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: BSD device name and its mount point
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >BSD device name and its mount point (From: Boris Remizov <email@hidden>)

  • Prev by Date: BSD device name and its mount point
  • Next by Date: Finder madness with Leopard and Samba
  • Previous by thread: BSD device name and its mount point
  • Next by thread: Finder madness with Leopard and Samba
  • Index(es):
    • Date
    • Thread