[linux-cifs-client] Re: Deep tree mounts without prefixpath

Peter Åstrand astrand at cendio.se
Wed Jan 31 06:45:40 GMT 2007


On Tue, 30 Jan 2007, Steve French wrote:

> In mount.cifs.c it needs to be modified to convert what the user typed:
>    mount -t cifs //server/share/directory  /mnt
> to the following (before passing to the mount api)
>    mount -t cifs //server/share /mnt -o prefixpath=directory
...
> The problem is that this takes away the ability to include a complex 
> sharename (with slashes in the sharename) if a server would ever allow 
> such syntax.  In my expirements Windows forbids '\' or '/' or '*" or "?" 
> in share names, but Samba or other servers may be more flexible, and 
> forcing mount.cifs.c to translate slashes in UNC names to prefix paths 
> takes away the ability to add e.g. something similar to escape 
> characters in share names in future servers.

I don't think that anyone would ever want to have slashes or backslashes 
in their share names. That would mean that the share wouldn't be 
accessible from Windows (and probably most other CIFS clients), right?

Regards, 
---
Peter Åstrand		ThinLinc Chief Developer
Cendio AB		http://www.cendio.se
Teknikringen 3
583 30 Linköping	Phone: +46-13-21 46 00


More information about the linux-cifs-client mailing list