• 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: Mount SMB volume
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mount SMB volume


  • Subject: Re: Mount SMB volume
  • From: George K Colley <email@hidden>
  • Date: Wed, 31 Mar 2010 08:55:41 -0700


On Mar 31, 2010, at 3:57 AM, email@hidden wrote:

 Hi All

I need to mount a volume from my custom browser. I have used FSMountServerVolumeSync to mount the volume and it works fine for success cases. But I need to show the error message if it fails. Looks like FSMountServerVolumeSync won't return proper error codes. ex: if I try to mount a afp volume (by giving valid input of a smb server), then authentication failed error code is returned instead of ioErr. 

Also some times the volume get mounted if no/invalid user name or password is provided. This is the case when Read/Write is given for shared folder(everyone). 
So with SMB an invalid account name means log me in as guest, if guest is turned on. Are you seeing this with a Snow Leopard Client?

I have tried mount_smbfs terminal command that gives proper errors for invalid inputs. But this command won't return proper error codes instead it displays error messages. Please let me know if there is a way to get the error codes out of these error messages. As I need to show the localized error messages.

OS puts up proper error message, any idea how this is done. Is there any Cocoa APIs to mount a remote volume. or at least check if the remote volume is reachable.

Thanks in Advance
Steve



--------------------------------------------------------------
Ovi Mail: Simple and user-friendly interface
http://mail.ovi.com
Do not post admin requests to the list. They will be ignored. Filesystem-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Mount SMB volume (From: email@hidden)

  • Prev by Date: Read File Sharing status
  • Previous by thread: Mount SMB volume
  • Next by thread: Read File Sharing status
  • Index(es):
    • Date
    • Thread