FSMountServerVolumeSync problems
FSMountServerVolumeSync problems
- Subject: FSMountServerVolumeSync problems
- From: David Feldman <email@hidden>
- Date: Sun, 18 Jan 2004 11:16:43 -0500
I'm trying to use FSMountServerVolumeSync to allow my app to mount
remote AFP volumes. (Previously it used a system() call to mount_afp,
but if I want to include a password in the call that won't be a good
option.) I'm making progress but have two somewhat related issues.
I'm using 10.3 and Xcode 1.1. First I created a small test app, which
mounted and unmounted without a hitch. Then I took that code and pasted
it into my main app, and things got weird. When I'm just running the
app, it now appears to work OK (though I could swear it wasn't
earlier). However, when I'm debugging, it hangs inside the
FSMountServerVolumeSync call, indefinitely as far as I can tell. If the
password is supplied, it just sits there (and the progress bar in the
app stops spinning). If the password is not supplied, it presents any
necessary Keychain unlock dialog properly, but then only partially
draws the password prompt dialog before hanging (after which the
dialog's buttons don't do anything or act properly).
Even weirder, if I pause the app using Xcode (which puts it in what I
assume is the NSApplication main event loop, inside
nextEventMatchingMask:untilDate:inMode:dequeue:) and then continue, it
un-hangs and proceeds as expected.
Second question: I notice that unlike mount_afp,
FSMountServerVolumeSync mounts the remote volume inside a subdirectory
of the mount point, named after the mounted volume. Certainly I can
adjust for that in general, but when (for example, due to a previous
error) a subdirectory by that name already exists,
FSMountServerVolumeSync creates another subdirectory named <volume
name>-1. Is there a straightforward way to request the valid mount path
after FSMountServerVolumeSync is done, so I know my app is working in
the right directory?
Thanks.
--Dave
------------------------------------------------------------------------
--
David A. Feldman
User Interface Designer
http://InterfaceThis.com
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.