• 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: SMB share re-naming?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SMB share re-naming?


  • Subject: Re: SMB share re-naming?
  • From: Quinn <email@hidden>
  • Date: Wed, 30 Apr 2003 09:38:26 +0100

At 21:30 -0500 29/4/03, Michael Thole wrote:
Is there any way to rename the name displayed on the desktop for a SMB
share? I'm programatically mounting (on Jaguar) a share using
FSMountServerVolumeSync() and a url that looks something like this:
smb://user:pass@hostname/sharename/volname. Currently, it mounts as
expected, but instead of the Finder displaying the 'volname' on the
Desktop, it displays the 'sharename'. If I go and examine my /Volumes
folder, I'll find that it is actually named properly to 'volname'.
I've tried funky things like mounting to a folder in the Desktop (and
telling the finder not to automatically show mounted volumes), but that
just results in a horrible user experience and confuses the hell of out
the Finder.

On Jaguar-based systems, the volume name for SMB is always derived from the share name. There's not much you can do about this. Please file a bug.

<http://developer.apple.com/bugreporter/>

If you send me the bug number, I'll add some comments to it based the investigation I did today.

Another, much more minor problem:
When the 'volname' contains spaces, I escape them to ' ' (via
CFURLCreateStringByAddingPercentEscapes) before using
FSMountServerVolumeSync(). Unfortunately the system doesn't un-escape
these characters, so if my volume name is 'Dev Notes', then I get the
folder: '/Volumes/Dev Notes'.

This is a known bug <rdar://problem/2746609>. We expect the fix to be in Panther.

S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
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.

References: 
 >SMB share re-naming? (From: Michael Thole <email@hidden>)

  • Prev by Date: URLAccess kURLDisplayProgressFlag issue
  • Next by Date: Re: URLAccess kURLDisplayProgressFlag issue
  • Previous by thread: SMB share re-naming?
  • Next by thread: URLAccess kURLDisplayProgressFlag issue
  • Index(es):
    • Date
    • Thread