[linux-cifs-client] POSIX pathnames

Jeremy Allison jra at samba.org
Fri May 6 11:28:16 GMT 2005


Steve, Conrad, Eric and other client maintainers
who might care,

	I'm looking at making the server support
direct Posix pathnames from POSIX clients. This would 
remove any problems with names containing the
evil (tm) set :

*\/?<>":

as the server would treat them as ordinary characters,
not mangle on CON: PRT: etc. allow names ending in ".",
essentially be full POSIX semantics. Path separators
will change so that only "/" is valid. This is not a
difficult change for the Samba server, and quite 
unobtrusive for Windows clients, but I've run into
a snag.

The problem is before switching the name parsing
and mangling functions to allow these names I need
to know if the client is going to be using POSIX name
semantics (ie. the client will send me names with a '/'
path separator, not a '\\'). I'm intending to do no
examination of the incoming pathname at all other than
parsing out the '/' separators. What I could do with is
getting capabilities info from the client when it sends
the 0x200 SMB_QUERY_CIFS_UNIX_INFO call to tell me it is going
to do this.

What is the best way to extend the 0x200 call that will
be compatible with the published standard ? Add a new
"set posix capabilities" call ? Add a 8 byte data portion
containing POSIX capabilities in the 0x200 call ?

Please give me your thoughts.

Jeremy.


More information about the linux-cifs-client mailing list