Deleted Added
full compact
nfs_srvsubs.c (36176) nfs_srvsubs.c (36329)
1/*
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Rick Macklem at The University of Guelph.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 20 unchanged lines hidden (view full) ---

29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * @(#)nfs_subs.c 8.3 (Berkeley) 1/4/94
1/*
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Rick Macklem at The University of Guelph.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 20 unchanged lines hidden (view full) ---

29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * @(#)nfs_subs.c 8.3 (Berkeley) 1/4/94
37 * $Id: nfs_subs.c,v 1.53 1998/04/06 11:41:07 phk Exp $
37 * $Id: nfs_subs.c,v 1.54 1998/05/19 07:11:24 peter Exp $
38 */
39
40/*
41 * These functions support the macros and help fiddle mbuf chains for
42 * the nfs op functions. They do things like create the rpc header and
43 * copy data between mbuf chains and uio lists.
44 */
45#include <sys/param.h>

--- 1048 unchanged lines hidden (view full) ---

1094 * Called once to initialize data structures...
1095 */
1096int
1097nfs_init(vfsp)
1098 struct vfsconf *vfsp;
1099{
1100 register int i;
1101
38 */
39
40/*
41 * These functions support the macros and help fiddle mbuf chains for
42 * the nfs op functions. They do things like create the rpc header and
43 * copy data between mbuf chains and uio lists.
44 */
45#include <sys/param.h>

--- 1048 unchanged lines hidden (view full) ---

1094 * Called once to initialize data structures...
1095 */
1096int
1097nfs_init(vfsp)
1098 struct vfsconf *vfsp;
1099{
1100 register int i;
1101
1102 nfsmount_zone = zinit("NFSMOUNT", sizeof(struct nfsmount), 0, 0, 1);
1103
1102 /*
1103 * Check to see if major data structures haven't bloated.
1104 */
1104 /*
1105 * Check to see if major data structures haven't bloated.
1106 */
1105 if (sizeof (struct nfsnode) > NFS_NODEALLOC) {
1106 printf("struct nfsnode bloated (> %dbytes)\n", NFS_NODEALLOC);
1107 printf("Try reducing NFS_SMALLFH\n");
1108 }
1109 if (sizeof (struct nfsmount) > NFS_MNTALLOC) {
1110 printf("struct nfsmount bloated (> %dbytes)\n", NFS_MNTALLOC);
1111 printf("Try reducing NFS_MUIDHASHSIZ\n");
1112 }
1113 if (sizeof (struct nfssvc_sock) > NFS_SVCALLOC) {
1114 printf("struct nfssvc_sock bloated (> %dbytes)\n",NFS_SVCALLOC);
1115 printf("Try reducing NFS_UIDHASHSIZ\n");
1116 }
1117 if (sizeof (struct nfsuid) > NFS_UIDALLOC) {
1118 printf("struct nfsuid bloated (> %dbytes)\n",NFS_UIDALLOC);
1119 printf("Try unionizing the nu_nickname and nu_flag fields\n");
1120 }

--- 1018 unchanged lines hidden ---
1107 if (sizeof (struct nfssvc_sock) > NFS_SVCALLOC) {
1108 printf("struct nfssvc_sock bloated (> %dbytes)\n",NFS_SVCALLOC);
1109 printf("Try reducing NFS_UIDHASHSIZ\n");
1110 }
1111 if (sizeof (struct nfsuid) > NFS_UIDALLOC) {
1112 printf("struct nfsuid bloated (> %dbytes)\n",NFS_UIDALLOC);
1113 printf("Try unionizing the nu_nickname and nu_flag fields\n");
1114 }

--- 1018 unchanged lines hidden ---