Deleted Added
full compact
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

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

47#include <sys/systm.h>
48#include <sys/kernel.h>
49#include <sys/mount.h>
50#include <sys/vnode.h>
51#include <sys/namei.h>
52#include <sys/mbuf.h>
53#include <sys/socket.h>
54#include <sys/stat.h>
55
56#include <nfs/rpcv2.h>
57#include <nfs/nfsv2.h>
58#include <nfs/nfsnode.h>
59#include <nfs/nfs.h>
60#include <nfs/xdr_subs.h>
61#include <nfs/nfsm_subs.h>
62#include <nfs/nfsmount.h>

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

92extern int nqnfs_piggy[NFS_NPROCS];
93extern struct nfsrtt nfsrtt;
94extern time_t nqnfsstarttime;
95extern u_long nqnfs_prog, nqnfs_vers;
96extern int nqsrv_clockskew;
97extern int nqsrv_writeslack;
98extern int nqsrv_maxlease;
99
100/*
101 * Create the header for an rpc request packet
102 * The hsiz is the size of the rest of the nfs request header.
103 * (just used to decide if a cluster is a good idea)
104 */
105struct mbuf *
106nfsm_reqh(vp, procid, hsiz, bposp)
107 struct vnode *vp;

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

629 }
630
631 /*
632 * Initialize reply list and start timer
633 */
634 nfsreqh.r_prev = nfsreqh.r_next = &nfsreqh;
635 nfs_timer();
636
637 return (0);
638}
639
640/*
641 * Attribute cache routines.
642 * nfs_loadattrcache() - loads or updates the cache contents from attributes
643 * that are on the mbuf list
644 * nfs_getattrcache() - returns valid attributes if found in cache, returns

--- 496 unchanged lines hidden ---