• 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: "Dr. Ian Silvester" <email@hidden>
  • Date: Fri, 06 Jul 2007 12:11:23 +0100

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".

I'll know the volume name that I'd like to unmount - I'm guessing this'll be included in the info returned per volume and I can make a match on that?


Thanks for the pointer,

Ian

_______________________________________________
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: Jim Luther <email@hidden>
    • Re: Unmounting an arbitrary volume
      • From: Quinn <email@hidden>
References: 
 >Unmounting an arbitrary volume (From: Dr.Ian Silvester <email@hidden>)
 >Re: Unmounting an arbitrary volume (From: Ben Artin <email@hidden>)

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