• 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: 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


  • Follow-Ups:
    • Re: Mount Point from BSDName / IORegistry
      • From: Ross Tulloch <email@hidden>
References: 
 >Mount Point from BSDName / IORegistry (From: devmaillists <email@hidden>)

  • Prev by Date: Mount Point from BSDName / IORegistry
  • Next by Date: Re: Mount Point from BSDName / IORegistry
  • Previous by thread: Mount Point from BSDName / IORegistry
  • Next by thread: Re: Mount Point from BSDName / IORegistry
  • Index(es):
    • Date
    • Thread