Re: Knfsd 1.5.1 patch (was Re: knfsd 1.5.1 is out.)

Philippe Troin (phil@fifi.org)
27 Sep 1999 08:59:22 -0700


--Multipart_Mon_Sep_27_08:59:22_1999-1
Content-Type: text/plain; charset=US-ASCII

Philippe Troin <phil@fifi.org> writes:

> hjl@varesearch.com (H.J. Lu) writes:
>
> > Hi,
> >
> > knfsd 1.5.1 has some big changes from 1.4.7. It seems to work for me.
> > Please be careful about it. Please report any bugs.
>
> Actually, I found two problems with this knfsd release.

8< snip >8

> This patch applies on top of knfsd 1.5.1. It patches mountd (one line)
> and creates a new kernel patch nfsd-2.2.12-2.mountd.patch to apply on
> top of nfsd-2.2.12-1.mountd.patch.
>
> Both patches are one-liners.

8< snip >8

And here is the patch...
Phil.

--Multipart_Mon_Sep_27_08:59:22_1999-1
Content-Type: application/octet-stream
Content-Disposition: attachment; filename="knfs-1.5.1.patches"
Content-Transfer-Encoding: quoted-printable

diff -ru --new-file X/knfs-1.5.1/nfsd-2.2.12-2.mountd.patch knfs-1.5.1/nf=
sd-2.2.12-2.mountd.patch
--- X/knfs-1.5.1/nfsd-2.2.12-2.mountd.patch Wed Dec 31 16:00:00 1969
+++ knfs-1.5.1/nfsd-2.2.12-2.mountd.patch Sat Sep 25 19:57:27 1999
@@ -0,0 +1,11 @@
+--- linux-2.2.12/fs/nfsd/netlink.c.broken Sat Sep 25 19:38:01 1999
++++ linux-2.2.12/fs/nfsd/netlink.c Sat Sep 25 19:52:34 1999
+@@ -95,7 +95,7 @@
+ if (NFS_MAXPATHLEN - cbk->devlen > 1) {
+ path =3D d_path(d, &cbk->path[cbk->devlen+1],
+ NFS_MAXPATHLEN - cbk->devlen);
+- memmove (&cbk->path[cbk->devlen+1], path,
++ memmove (&cbk->path, path,
+ &cbk->path[NFS_MAXPATHLEN] - path + 1);
+ }
+ =

diff -ru --new-file X/knfs-1.5.1/utils/mountd/svc_run.c knfs-1.5.1/utils/=
mountd/svc_run.c
--- X/knfs-1.5.1/utils/mountd/svc_run.c Fri Sep 24 15:00:32 1999
+++ knfs-1.5.1/utils/mountd/svc_run.c Sat Sep 25 19:04:46 1999
@@ -85,6 +85,7 @@
default:
if (FD_ISSET(xfd, &readfds)) {
(*handler)(xfd);
+ FD_CLR(xfd, &readfds);
}
svc_getreqset (&readfds);
}

--Multipart_Mon_Sep_27_08:59:22_1999-1--

-
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/