• 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: Unmounting an arbitrary volume
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unmounting an arbitrary volume


  • Subject: Re: Unmounting an arbitrary volume
  • From: Ben Artin <email@hidden>
  • Date: Fri, 6 Jul 2007 03:42:32 -0400

Once I have mounted one or more network volumes, I am aware that each is assigned an FSVolumeRefNum. To unmount, it is this ID I must pass. Clearly I do not wish to store locally the IDs of all volumes I've mounted (and indeed I might not have mounted all available net volumes), so how do I access the system's list of mounted volumes, and how do I identify a specific volume in order to obtain it's FSVolumeRefNum in order to unmount it?

FSGetVolumeInfo will iterate over volumes. Pass it successive integers in volumeIndex until you get an error back. How you might identify a volume depends on what you mean by "identify".


Hth,

Ben

--

<http://artins.org/ben>

"And when I have understanding of computers, I shall be
        the supreme being!" -- Evil, "Time Bandits"


_______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Unmounting an arbitrary volume
      • From: "Dr. Ian Silvester" <email@hidden>
References: 
 >Unmounting an arbitrary volume (From: Dr.Ian Silvester <email@hidden>)

  • Prev by Date: Unmounting an arbitrary volume
  • Next by Date: Re: Unmounting an arbitrary volume
  • Previous by thread: Unmounting an arbitrary volume
  • Next by thread: Re: Unmounting an arbitrary volume
  • Index(es):
    • Date
    • Thread