Please try knfsd 980922

H.J. Lu (hjl@lucon.org)
Tue, 22 Sep 1998 19:23:54 -0700 (PDT)


> I'm currently trying to get knfsd-980920 up with RH 5.1. I applied the
> patch to 2.1.122, the kernel-daemons run ok. I`m having some
> problems right now:
>
> 1. When exporting from /etc/exports to multiple clients, only the first
> client of an export gets an entry in xtab. Further clients are ignored:
>
> /etc/exports
> /home zeus(rw) iris2(rw) catia1(rw) catia2(rw) catia3(rw)
>

Please try knfsd-980922.

>
>
> 2. Adding entries to xtab looks broken, no matter using hostnames or IP:
>
> [root@achilles nfs]# cat xtab
> /home
> 3.5(ro,sync,wdelay,secure,root_squash,no_all_squash,mapping=identity,anonuid=-2,anongid=-2)
> /home
> 192.168.3.4(rw,sync,wdelay,secure,root_squash,no_all_squash,mapping=identity,anonuid=-2,anongid=-2)
>
> The second entry was the first export, the upper line was created with
>
> kexportfs -v 192.168.3.2:/home

Please try knfsd-980922.

>
>
> 3. When restarting the NFS server the daemons lose RPC registration.
>
> [root@achilles init.d]# ./rc.nfsd restart
> Restarting NFS services: rpc.kmountd rpc.kstatddone.
> [root@achilles init.d]# showmount
> mount clntudp_create: RPC: Program not registered
>

Please read NEW in knfsd-980922. You need to update your rc.nfsd.

Please give it a try.

Thanks.

H.J.

---
This is the Linux kernel NFS daemon. It is based on linux-nfs 0.4.22.
It is tested on Linux/alpha and Linux/x86 running glibc 2.0.7.

Changes from knfsd-980920:

1. Add NFS mount version flags to mountd. Change rc.nfsd to disable NFS V3 for mountd. 2. Fix client hostname. 3. rc.nfsd runs kexportfs with -r instead of -a for restart and reload.

Changes from knfsd-980915:

1. There is a knsfd quota patch for Linux 2.1.1xx, quota-2.1.1xx.diff. It is only tested on linux 2.1.122. 2. The submount pathname is removed from the xtab file. 3. rc.nfsd runs kexportfs with -r instead of -a for start. 4. Fix kshowmount -e. 5. Fix hostname matching. 6. Fix compiling on libc 5.

Changes from knfsd-980910:

1. nfsd-2.1.121-3.patch from G. Allen Morris III (gam3@acm.org). 2. A new flag, -r, for exportfs. 3. Don't put an entry in xtab if kernel rejects it. 4. Use the official hostname when checking if 2 hostnames are the same. 5. Allow submounts.

It is available at

ftp://ftp.yggdrasil.com/private/hjl/knfsd-980922.tar.gz ftp://ftp.yggdrasil.com/private/hjl/knfsd-980920-980922.diff.gz ftp://ftp.kernel.org/pub/linux/devel/gcc/knfsd-980922.tar.gz ftp://ftp.kernel.org/pub/linux/devel/gcc/knfsd-980920-980922.diff.gz

You have to apply the patch, linux-2.1.1xx.diff, to the Linux kernel first. It fixes quite a few nfs bugs. That patch is against Linux 2.1.111. If your kernel is different, you have to apply it by hand.

If you want quota to work for knfsd, you also need to apply the patch, quota-2.1.1xx.diff, to the Linux kernel. This patch is against Linux 2.1.122. If your kernel is different, you have to apply it by hand.

nfsd-2.1.121-3.patch is another knfsd patch against linux 2.1.121 by "G. Allen Morris III" (gam3@acm.org). It works for me on x86 and alpha.

To compile, just do

# make

Makefile will try to determine which C library you are using and compile this package accordingly.

# make install

will install the knfsd binaries. You have to install a knfs start up script by hand. There is a new rc.nfsd in etc. I use it for both the user-space nfsd and the kernel nfsd.

The NFS lock is only tested with knfsd. If the NFS lock doesn't work for you, please try knfsd first before reporting it.

Thanks.

H.J. hjl@lucon.org 09/22/98

- 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.tux.org/lkml/