Re: knfsd and asm/system.h / linux/kernel.h problem [w/patch]

Bill Hawes (whawes@transmeta.com)
Tue, 11 Aug 1998 16:57:18 -0700


Eugene Crosser wrote:

> Is anyone working on the kernel nfs server? is linux-nfs-0.4.21.tar.gz
> the most recent version? I tried to compile it with the kernel 2.1.112
> and 2.1.115 and the tools did not compile because they indirectly include
> asm/system.h which has in like 40:
>
> extern void FASTCALL(__switch_to(struct task_struct *prev, ....
>
> FASTCALL is defined in linux/kernel.h, but inside #ifdef __KERNEL__.
> NFS tools are (naturally) compiled without this #define. As a result,
> there is a syntax error. Moving #define FASTCALL outside of #ifdef
> __KERNEL__ helps. I am attaching the diff but I am not sure if it
> is right.

You don't need to build anything in the kernel directory of linux-nfs_xcxx,
as all of the code is already in the kernel. Just modify the makefile to
comment that part out.

> knfsd (or kmountd?) works in a weird way anyway... Sometimes it refuses
> to satisfy mount request without obvious reason. Locking seems to always
> fail...

knfsd works differently than unfsd in the mounts it will accept. Locking
should be working, but you'll need to run statd, IIRC.

Regards,
Bill

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html