How to identify the server from which a volume was mounted?
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