FSMountServerVolumeSync ioErr mounting SMB drives
FSMountServerVolumeSync ioErr mounting SMB drives
- Subject: FSMountServerVolumeSync ioErr mounting SMB drives
- From: "Tom Greenwalt" <email@hidden>
- Date: Tue, 19 May 2009 14:31:51 -0500
I'm trying to use 'FSMountServerVolumeSync' to mount a SMB drive.
For example:
error = FSMountServerVolumeSync(urlSrcName, 0L,
(CFStringRef)userName,
(CFStringRef)password,
(FSVolumeRefNum *)returnRefNum,
0L /* OptionBits, currently unused */
);
Where urlSrcName is 'smb://fileserver/public'. The volume actually mounts
and I can see it if I do a 'df' from the terminal window, though it doesn't
appear in Finder. But FSMountServerVolumeSync always returns a '-36' ioErr
and the returnRefNum is empty. Without the returnRefNum, it's tough to find
name of the mountpoint so my app can translate the paths to the files and I
can't unmount using 'FSEjectVolumeSync'. This happens on both MacOSX 10.4
and 10.5.
Any ideas on what I'm doing wrong?
Thanks.
_______________________________________________
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