[linux-cifs-client] RE: Longnames (was problems with cifs)

Steve French smfltc at us.ibm.com
Fri May 6 20:21:56 GMT 2005


On Fri, 2005-05-06 at 02:42, Naidu Bollineni wrote:
> Unfortunately with widechar formats having 0xF000 in them, it is really
> hard to have a mixed environment like NFS+CIFS.
> 
> With or without mapchars, if the name came from NFS having these
> illegal/special characters, server is sending mangled names to CIFS
> client.

Mixed NFS & CIFS with special characters might work when the server is
Windows 200x since Microsoft saves in NTFS such files (with the
+0xF000)  but I have not tested it.

Short of Samba changing to allow such characters when POSIX client is
negotiated (which I want to strongly encourage) I can only think of one
alternative - a mount parm that would do mapchars behavior on file not
found errors on lookup/readdir/rmdir/open/delete/rename, and mapchars
behavior on returned directory entries (those six that have 0xF000) but
not do mapchars behavior on create/mkdir.

That would not allow such files/directories to be created, so I don't
see how that is much better.

> 
> With mapchars+CIFS I create a file with special characters, but NFSv3
> can't deal with widechars.
> 
> So, if I don't have NFS access, theoretically isn't there any other way
> to see real names from CIFS client?
> 
> Naidu Bollineni
> Senior Member Technical Staff
> Kazeon Systems
> naidu at kazeon.com
> www.kazeon.com
> 
> > -----Original Message-----
> > From: Jeremy Allison [mailto:jra at samba.org]
> > Sent: Friday, May 06, 2005 12:22 AM
> > To: Steve French
> > Cc: Naidu Bollineni; linux-cifs-client at lists.samba.org
> > Subject: Re: [linux-cifs-client] RE: Longnames (was problems with
> cifs)
> > 
> > On Thu, May 05, 2005 at 07:11:51PM -0500, Steve French wrote:
> > > On Thu, 2005-05-05 at 13:12, Naidu Bollineni wrote:
> > > > The filenames do have <, > characters in them.
> > > > With mapping the illegal characters (by ORing 0xFF00 to the
> > character),
> > > > is it possible for server to return the true name at all, if the
> > client
> > > > says it can handle such things?
> > >
> > > Yes. If the "mapchars" mount option is used, the reserved characters
> > > (except slash) will be mapped going to/from the server, allowing you
> to
> > > create files with such characters in the filename and see them in
> ls,
> > > stat etc.
> > 
> > Ok, based on feedback gathered over here at SambaXP I'm
> > going to fix the parsing algorithms for 3.0.XX (where XX > 14a)
> > so that "mapchars" isn't needed - we'll allow the "illegal" characters
> > from a CIFSFS client.
> > 
> > Jeremy.
> 



More information about the linux-cifs-client mailing list