[klibc] [PATCH] fix root on nfs

Olaf Hering olh at suse.de
Thu Aug 19 11:59:28 PDT 2004


 On Sat, Aug 14, H. Peter Anvin wrote:

> Olaf Hering wrote:
> > On Sat, Aug 14, Olaf Hering wrote:
> >
> >
> >>On Mon, May 24, Olaf Hering wrote:
> >>
> >>
> >>>this patch fixes root on nfs for me.
> >>
> >>Is there a reason why you did not apply this one?
> >
> >
> >hmm, only the mount part is missing.
> >
> >
> >
> >>>diff -p -ppurN klibc-0.116/nfsmount/mount.c 
> >>>klibc-0.116.nfsmount/nfsmount/mount.c
> >>>--- klibc-0.116/nfsmount/mount.c	2003-05-06 00:15:09.000000000 +0200
> >>>+++ klibc-0.116.nfsmount/nfsmount/mount.c	2004-05-24 
> >>>18:52:35.000000000 +0200
> >>>@@ -77,9 +77,7 @@ static void get_ports(__u32 server, cons
> >>>
> >>>static inline int pad_len(int len)
> >>>{
> >>>-	if (len % 8)
> >>>-		return (len & 7) + 8;
> >>>-	return len;
> >>>+	return (len + 3) & ~3;
> >>>}
> >>>
> >>>static inline void dump_params(__u32 server,
> >>>
> >
> >
> 
> Are you sure it should be aligned to a 4-byte boundary rather than an 
> 8-byte boundary?

I saw failures with nfs tcp mount. Olaf Kirch came up with that patch,
so I guess its ok.

-- 
USB is for mice, FireWire is for men!

sUse lINUX ag, nÜRNBERG



More information about the klibc mailing list