• 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
Re: FSMountServerVolumeSync ioErr mounting SMB drives
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FSMountServerVolumeSync ioErr mounting SMB drives


  • Subject: Re: FSMountServerVolumeSync ioErr mounting SMB drives
  • From: Ryan McGann <email@hidden>
  • Date: Wed, 20 May 2009 13:24:03 -0700

On May 20, 2009, at 12:06 PM, "Tom Greenwalt" <email@hidden> wrote:

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.
Just a stab in the dark, but are you sure that the username includes the workgroup name when required? For example to mount most SMB volumes on our network, my username is actually ENTERPRISE\ryan_mcgann. Make sure you can mount the same volume in the Finder using the Connect to server… option with the same username & password.

Ryan

 _______________________________________________
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: FSMountServerVolumeSync ioErr mounting SMB drives
      • From: "Tom Greenwalt" <email@hidden>
  • Prev by Date: FSMountServerVolumeSync ioErr mounting SMB drives
  • Next by Date: RE: FSMountServerVolumeSync ioErr mounting SMB drives
  • Previous by thread: FSMountServerVolumeSync ioErr mounting SMB drives
  • Next by thread: RE: FSMountServerVolumeSync ioErr mounting SMB drives
  • Index(es):
    • Date
    • Thread