• 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
How to identify the server from which a volume was mounted?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to identify the server from which a volume was mounted?


  • Subject: How to identify the server from which a volume was mounted?
  • From: Jerry Krinock <email@hidden>
  • Date: Tue, 30 Jun 2009 22:19:29 -0700

Say the user has mounted a volume from a network server, AnotherMac, and that when presented with the "Choose a Volume" dialog, they chose Suzie's Home Folder. This volume shows up on their Mac as:

   /Volumes/Suzie

Now, let's say they open one of Suzie's files in my app. My app sees that its path is /Volumes/Suzie/SomeFile and stores that. Then, the next day my app would like to programatically open this file again, but /Volumes/Suzie has disconnected. So, it would like to programatically mount this volume using FSMountServerVolumeSync(). I understand that an authentication dialog will appear -- that's OK.

Physically, we know that FSMountServerVolumeSync() needs to know the server. Indeed, its first argument is a url of the form:

   afp://10.0.2.205/Suzie

where 10.0.2.205 is an address of AnotherMac. But my app doesn't know anything about the server because all it ever saw the user open was / Volumes/Suzie/SomeFile.

How can I the identify the server from which a volume was mounted, or should I be "thinking different"?

Possibly, would a file Alias (as in Alias Manager) know what server it is on?

Thanks,

Jerry Krinock

_______________________________________________
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: How to identify the server from which a volume was mounted?
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Re: select() not working with UDP
  • Next by Date: Re: How to identify the server from which a volume was mounted?
  • Previous by thread: Re: select() not working with UDP
  • Next by thread: Re: How to identify the server from which a volume was mounted?
  • Index(es):
    • Date
    • Thread