NFS v.3 I18N
Subsystems (2)
Hello,
Can anyone tell me about NFS3 KNFSD I18N solutions ?
Is it already implemented somewhere or may be somebody works on it ? Any ideas, explanations, links are welcome.
Thank you in advance,
Signature · 9 lines
Ed V. Bartosh _______________________________________________________________ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [email protected] _______________________________________________ NFS maillist - [email protected] https://lists.sourceforge.net/lists/listinfo/nfs
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
" " == Ed V Bartosh <[email protected]> writes:
> Hello, Can anyone tell me about NFS3 KNFSD I18N solutions ? Is > it already implemented somewhere or may be somebody works on it > ? Any ideas, explanations, links are welcome.
I presume you are talking about the supporting userland daemons (mountd, statd, portmap...)? Please note that Linus has banned any i18n stuff in the kernel itself...
AFAIK, nobody has bothered yet, so if you are feeling like giving it a shot, then by all means do...
Cheers,
Trond
_______________________________________________________________
Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [email protected]
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
Hi, Trond!
Quoted 3 lines · /07 May 2002 22:01:13 +0200/ you wrote:
Quoted 3 lines
Hello, Can anyone tell me about NFS3 KNFSD I18N solutions ? Is it already implemented somewhere or may be somebody works on it ? Any ideas, explanations, links are welcome.
TM> I presume you are talking about the supporting userland daemons TM> (mountd, statd, portmap...)?
I'm talking about having ability to represent filenames and other NFS related strings i18n way, which allows clients with different languages works with NFS without problem.
As I know this is the part of NFS v4 specification. Is it already implemented in any NFS4 projects ?
TM> Please note that Linus has banned any i18n stuff in the kernel itself...
TM> AFAIK, nobody has bothered yet, so if you are feeling like giving it a TM> shot, then by all means do...
I think it should be following scheme:
All strings should be translated from the client encoding to the server one for incoming requests and in backward direction for outgoing requests. If it's not possible to do it in the kernel then it should be done at the userspace, right ? It can be implemented by open communication channel (pipe or so) between kernel and userspace and passing data for recoding through it.
Answers could be returned to the kernel through the syscalls. Also, as suggested Neil Brown, we need mechanism for suspended rpc requests until we have result from the userspace. Without it we will probably have kernel threads waiting for answers from the userspace which is not acceptable.
As far as I know defered rpc requests mechanism was in Neil's NFSD Auth patches. Last vesion of it I can find is there:
http://cgi.cse.unsw.edu.au/~neilb/patches/linux/2.4.14/patch-R-NfsdAuthWIP2
I think that defered requests is important and useful mechanism for kernel-userspace communication. Also it is the most difficult part for implementing.
Is it already in 2.5 ? If so how difficult is to backport it to 2.4 ? If it would be implemented that other parts of recoding will be done easily, I think.
What do you think about this, Trond ?
I need your feedback. Answer, please.
Signature · 10 lines
Best regards, Ed V. Bartosh _______________________________________________________________ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [email protected] _______________________________________________ NFS maillist - [email protected] https://lists.sourceforge.net/lists/listinfo/nfs
Quoted 5 lines · Ed V. Bartosh
I'm talking about having ability to represent filenames and other NFS related strings i18n way, which allows clients with different languages works with NFS without problem.
As I know this is the part of NFS v4 specification. Is it already implemented in any NFS4 projects ?
Hang on a bit here. You started by talking about NFSv3 and now you are onto NFSv4...
To clarify a bit here: NFSv2 and v3 do not specify any character encoding schemes, so it is pointless to do any NLS stuff for it: the protocol just doesn't offer any support for it.
(I was assuming you meant i18n string translations: this is what has been banned by Linus...)
NFSv4, OTOH, specifies the use of UTF-8 encoding in order to communicate between the client and the server.
If you want to help with NLS character conversion for NFSv4, then you should talk to the CITI people (see
http://www.citi.umich.edu/projects/nfsv4/index.html) as they are responsible for that project. Please note though that most of the work has already been
done: see the stuff in linux/fs/nls
Cheers,
Trond
_______________________________________________________________
Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [email protected]
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
Hi, Trond!
Quoted 5 lines · /Wed, 8 May 2002 17:46:54 +0200/ you wrote:
Quoted 5 lines
I'm talking about having ability to represent filenames and other NFS related strings i18n way, which allows clients with different languages works with NFS without problem.
As I know this is the part of NFS v4 specification. Is it already implemented in any NFS4 projects ?
TM> Hang on a bit here. You started by talking about NFSv3 and now you are onto TM> NFSv4...
Sorry for misunderstanding. I mentioned NFSv4, but I need that for NFSv3, as I said in the 1st message. I've just thought that if this kind of stuff is already implemented in NFSv4 project that may helps. Now I see that I was wrong, sorry.
TM> To clarify a bit here: NFSv2 and v3 do not specify any character encoding TM> schemes, so it is pointless to do any NLS stuff for it: the protocol just TM> doesn't offer any support for it.
I understand that. But I think it's possible to implement charset translation for filenames and other strings not toching NFS protocol, just on the server side. Info about used client encodings may be given from some config file or as an additional option in /etc/exports.
Is it so bad idea to have this functionality in NFSd ? Why ? Samba has it, for example.
TM> (I was assuming you meant i18n string translations: this is what has been TM> banned by Linus...)
Yes, it is i18n string translation.
But I think it shouldn't be in the kernel, I was going to implement it in the user space, using iconv, look at my prev. message, please. I tried to explain how I plan to do that. I need your feedback especially regarding defered requests.
TM> NFSv4, OTOH, specifies the use of UTF-8 encoding in order to communicate TM> between the client and the server.
TM> If you want to help with NLS character conversion for NFSv4, then you should TM> talk to the CITI people (see
TM> http://www.citi.umich.edu/projects/nfsv4/index.html) as they are responsible TM> for that project.
Thank you for the info, but I want to implement that for 2.4 knfsd.
Answer, please, Trond. What do you think about that ?
Signature · 10 lines
Best regards, Ed V. Bartosh _______________________________________________________________ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [email protected] _______________________________________________ NFS maillist - [email protected] https://lists.sourceforge.net/lists/listinfo/nfs
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
" " == Ed V Bartosh <[email protected]> writes:
TM> To clarify a bit here: NFSv2 and v3 do not specify any TM> character encoding schemes, so it is pointless to do any NLS TM> stuff for it: the protocol just doesn't offer any support for TM> it.
> I understand that. But I think it's possible to implement > charset translation for filenames and other strings not toching > NFS protocol, just on the server side. Info about used client > encodings may be given from some config file or as an > additional option in /etc/exports.
> Is it so bad idea to have this functionality in NFSd ? Why ? > Samba has it, for example.
The question to ask when deciding whether or not to implement some functionality in the kernel is not 'why shouldn't we have it?', it is 'why do we need it?'
Exactly in what situation do the needs of an NFS exported system differ from that of your standard ext2/3 filesystem?
Cheers,
Trond
_______________________________________________________________
Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [email protected]
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
Hi, Trond!
Quoted 2 lines · /Thu, 9 May 2002 16:46:08 +0200/ you wrote:
Quoted 2 lines
Is it so bad idea to have this functionality in NFSd ? Why ? Samba has it, for example.
TM> The question to ask when deciding whether or not to implement some TM> functionality in the kernel is not 'why shouldn't we have it?', it is TM> 'why do we need it?'
TM> Exactly in what situation do the needs of an NFS exported system TM> differ from that of your standard ext2/3 filesystem?
In situation with different clients environments (OSes, for examle), which don't allow users to use standard Linux i18N functionality.
Signature · 10 lines
Best regards, Ed V. Bartosh _______________________________________________________________ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [email protected] _______________________________________________ NFS maillist - [email protected] https://lists.sourceforge.net/lists/listinfo/nfs
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
" " == Ed V Bartosh <[email protected]> writes:
TM> Exactly in what situation do the needs of an NFS exported TM> system differ from that of your standard ext2/3 filesystem?
> In situation with different clients environments (OSes, for > examle), which don't allow users to use standard Linux i18N > functionality.
Sure, but do you have a concrete example of a situation where this issue has been raised, and where a server-side solution was needed?
Can't Windows NFS clients handle this sort of thing on their own (I really have no idea) and if they don't, has it ever been a problem?
Cheers,
Trond
_______________________________________________________________
Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [email protected]
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
Hi, Trond!
/Sun, 12 May 2002 21:47:46 +0200/ you wrote:
TM>> Exactly in what situation do the needs of an NFS exported TM>> system differ from that of your standard ext2/3 filesystem?
Quoted 3 lines
Quoted 3 lines
In situation with different clients environments (OSes, for examle), which don't allow users to use standard Linux i18N functionality.
TM> Sure, but do you have a concrete example of a situation where this TM> issue has been raised, and where a server-side solution was needed?
I have an example. Here it is:
I'm taking part in developing NAS software. It shares same files through different file-sharing protocols: SMB, ATALK, NFS for wide range of client platforms. It has Linux on server, of course.
How it can be possible to allow clients from different platforms and different locales using their files with non-ASCII names ?
I think that server-side solution is more preferable in this case, because we can't solve this problem on all possible client platforms. Am I wrong ?
TM> Can't Windows NFS clients handle this sort of thing on their own (I TM> really have no idea) and if they don't, has it ever been a problem? In our situation this is really a problem.
Signature · 10 lines
Best regards, Ed V. Bartosh _______________________________________________________________ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [email protected] _______________________________________________ NFS maillist - [email protected] https://lists.sourceforge.net/lists/listinfo/nfs