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

Mount SMB volume


  • Subject: Mount SMB volume
  • From: email@hidden
  • Date: Wed, 31 Mar 2010 16:27:50 +0530

 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). 

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

  • Follow-Ups:
    • Re: Mount SMB volume
      • From: George K Colley <email@hidden>
  • Prev by Date: Re: How do I distinguish an NTFS from a FAT 32 file system on a GPT disk?
  • Next by Date: Read File Sharing status
  • Previous by thread: Re: How do I distinguish an NTFS from a FAT 32 file system on a GPT disk?
  • Next by thread: Re: Mount SMB volume
  • Index(es):
    • Date
    • Thread