remapping illegal file characters

Steve French smfrench at austin.rr.com
Fri Apr 8 03:52:38 GMT 2005


A much better version of the character remapping patch is now in the 
source tree for the Linux cifs client.  This is enabled if you specify
    mapchars
in the mount options and then six of the seven reserved characters will 
be remapped in filenames (ie adding 0xF000 to be compat with Windows).   
Note that one reserved character, backslash, is not remapped yet (that 
would have caused me to change a lot more code, and I did not want to 
risk it this close to the release of 2.6.12).  This does not affect 
sharenames, usernames and I did not change it for symlinks (I want to 
test that more first) - at some point I need to recognize SFU symlinks 
as well.

I would appreciate one or two of you all reviewing the patch though (it 
got quite large since it hit all file name related string conversions - 
and since I did not have a pointer to the superblock flags - it hit the 
parent function(s) in many cases as well).
1st part
http://cifs.bkbits.net:8080/linux-2.5cifs/gnupatch@4250bbcbPSkXcU2T_ZV808KzyzpLqg
2nd part
http://cifs.bkbits.net:8080/linux-2.5cifs/gnupatch@4254b806_RdGWJqoKe3vkf2Ed0X3_A
3rd part
http://cifs.bkbits.net:8080/linux-2.5cifs/gnupatch@4255fd3a1I9WAFEXnUEtEw1WN-_1VA



More information about the samba-technical mailing list