put nuidhash_max in a file that is shared between server and client code.

This commit is contained in:
christos 2009-12-31 20:01:33 +00:00
parent 6ee63fe8b0
commit 44768c61d0
2 changed files with 6 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: nfs_subs.c,v 1.217 2009/05/14 15:42:22 yamt Exp $ */
/* $NetBSD: nfs_subs.c,v 1.218 2009/12/31 20:01:33 christos Exp $ */
/*
* Copyright (c) 1989, 1993
@ -70,7 +70,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: nfs_subs.c,v 1.217 2009/05/14 15:42:22 yamt Exp $");
__KERNEL_RCSID(0, "$NetBSD: nfs_subs.c,v 1.218 2009/12/31 20:01:33 christos Exp $");
#ifdef _KERNEL_OPT
#include "fs_nfs.h"
@ -118,6 +118,7 @@ __KERNEL_RCSID(0, "$NetBSD: nfs_subs.c,v 1.217 2009/05/14 15:42:22 yamt Exp $");
static u_int32_t nfs_xid;
int nuidhash_max = NFS_MAXUIDHASH;
/*
* Data items converted to xdr at startup, since they are constant
* This is kinda hokey, but may save a little time doing byte swaps

View File

@ -1,4 +1,4 @@
/* $NetBSD: nfs_syscalls.c,v 1.152 2009/12/31 19:38:16 christos Exp $ */
/* $NetBSD: nfs_syscalls.c,v 1.153 2009/12/31 20:01:33 christos Exp $ */
/*
* Copyright (c) 1989, 1993
@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: nfs_syscalls.c,v 1.152 2009/12/31 19:38:16 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: nfs_syscalls.c,v 1.153 2009/12/31 20:01:33 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -79,7 +79,7 @@ extern int32_t (*nfsrv3_procs[NFS_NPROCS])(struct nfsrv_descript *,
struct nfssvc_sock *,
struct lwp *, struct mbuf **);
extern int nfsrvw_procrastinate;
int nuidhash_max = NFS_MAXUIDHASH;
extern int nuidhash_max;
static int nfs_numnfsd = 0;
static struct nfsdrt nfsdrt;