On Saturday 09 April 2005 17:49, Anthony Brock wrote: > Quoting Dave Pearson <[EMAIL PROTECTED]>: > > Rather than use hostfs, I've been using NFS to mount my home on various > > umls - it gives me more flexibility to move the uml to a machine with > > more horsepower if I want to without shagging out the setup. If you can > > get TunTap working with 2.4 then this is a good way to go. > > As an aside, I haven't been able to get NFS functional when compiled as > a module > in the 2.6.11.6 kernel. To get it working, I had to statically compile it > in. However, I have no idea if this is UML specific or a larger issue. > > The error message when using NFS as a module was: > > nfsd[9362]: nfssvc: Function not implemented Caught, it's UML specific... I'll fix that in the -bs4 patch on my homepage, and possibly on next 2.6.11.x (times for inclusion are slower for that, because of the review process).
Try the attached patch with modular NFSd and verify it works. Thanks -- Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade
CC: <[EMAIL PROTECTED]> This trick is useless, because sys_ni.c will handle this problem by itself, like it does even on UML for other syscalls. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> --- clean-linux-2.6.11-paolo/arch/um/kernel/sys_call_table.c | 8 +------- 1 files changed, 1 insertion(+), 7 deletions(-) diff -puN arch/um/kernel/sys_call_table.c~uml-nfsd-syscall arch/um/kernel/sys_call_table.c --- clean-linux-2.6.11/arch/um/kernel/sys_call_table.c~uml-nfsd-syscall 2005-04-10 13:50:29.000000000 +0200 +++ clean-linux-2.6.11-paolo/arch/um/kernel/sys_call_table.c 2005-04-10 13:51:19.000000000 +0200 @@ -14,12 +14,6 @@ #include "sysdep/syscalls.h" #include "kern_util.h" -#ifdef CONFIG_NFSD -#define NFSSERVCTL sys_nfsservctl -#else -#define NFSSERVCTL sys_ni_syscall -#endif - #define LAST_GENERIC_SYSCALL __NR_keyctl #if LAST_GENERIC_SYSCALL > LAST_ARCH_SYSCALL @@ -190,7 +184,7 @@ syscall_handler_t *sys_call_table[] = { [ __NR_getresuid ] = (syscall_handler_t *) sys_getresuid16, [ __NR_query_module ] = (syscall_handler_t *) sys_ni_syscall, [ __NR_poll ] = (syscall_handler_t *) sys_poll, - [ __NR_nfsservctl ] = (syscall_handler_t *) NFSSERVCTL, + [ __NR_nfsservctl ] = (syscall_handler_t *) sys_nfsservctl, [ __NR_setresgid ] = (syscall_handler_t *) sys_setresgid16, [ __NR_getresgid ] = (syscall_handler_t *) sys_getresgid16, [ __NR_prctl ] = (syscall_handler_t *) sys_prctl, _