lkml.org 
[lkml]   [1999]   [Nov]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectRe: NFS_ROOT bug
From
Date
>>>>> " " == braam  <braam@cs.cmu.edu> writes:

> --- fs/nfs/mount_clnt.c.orig Tue Nov 2 12:05:36 1999
> +++ fs/nfs/mount_clnt.c Tue Nov 2 12:15:00 1999
> @@ -23,6 +23,11 @@
> # define NFSDBG_FACILITY NFSDBG_ROOT
> #endif

> +#ifndef MAX +# define MAX(a, b) (((a) > (b))? (a) : (b))
> +#endif + +
> /*
> #define MOUNT_PROGRAM 100005 define MOUNT_VERSION 1
> @@ -119,7 +124,7 @@
> { "mnt_mount",
> (kxdrproc_t) xdr_encode_dirpath, (kxdrproc_t)
> xdr_decode_fhstatus,
> - MNT_dirpath_sz, MNT_fhstatus_sz },
> + MAX(MNT_dirpath_sz, MNT_fhstatus_sz), 0},
> };
> static struct rpc_version mnt_version1 = {

Well spotted, but that should be

'MAX(MNT_dirpath_sz, MNT_fhstatus_sz) << 2'

in order to be correct.

Cheers,
Trond

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

\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.031 / U:1.816 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site