SMB and AFP mounts using FSMountServerVolumeAsync
SMB and AFP mounts using FSMountServerVolumeAsync
- Subject: SMB and AFP mounts using FSMountServerVolumeAsync
- From: Dalton Hamilton <email@hidden>
- Date: Thu, 27 Oct 2005 10:11:58 +0200
I am using FSMountServerVolumeAsync and FSUnmountVolumeSync to mount
and unmount smb and afp shares.
QUESTION 1:
However, I don't see a way to detect if the user has mounted the
shared volume manually. If the user has mounted the share manually
and then he runs my application and clicks on the button to mount the
same shared volume, my application calls FSMountServerVolumeAsync and
a second volume (icon is a Globe) appears on the desktop for the same
shared volume. However, If the volume was mounted by my application
and then the user attempts to mount the volume again, the
applications FSMountServerVolumeAsync operation provides an error
code (to my callback function) of volOnLinErr -- which means Volume
is already online. I don't see the connection. Why doesn't the
FSMountServerVolumeAsync operation give the same volOnLinErr when the
volume has been mounted already manually???
QUESTION 2:
Likewise, I'd like to be able to un-mount manually mounted volumes.
Today, when my application mounts a shared volume, I save the volume
reference number. I pass this volume reference number to the
FSUnmountVolumeSync call and it un-mounts the volume. How do I
detect the manually mounted share and get its volume reference number???
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden