Deleted Added
full compact
nfs_subs.c (2979) nfs_subs.c (2997)
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>
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#ifdef VFS_LKM
56#include <sys/sysent.h>
57#include <sys/syscall.h>
58#endif
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
59
60#include <nfs/rpcv2.h>
61#include <nfs/nfsv2.h>
62#include <nfs/nfsnode.h>
63#include <nfs/nfs.h>
64#include <nfs/xdr_subs.h>
65#include <nfs/nfsm_subs.h>
66#include <nfs/nfsmount.h>

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

96extern int nqnfs_piggy[NFS_NPROCS];
97extern struct nfsrtt nfsrtt;
98extern time_t nqnfsstarttime;
99extern u_long nqnfs_prog, nqnfs_vers;
100extern int nqsrv_clockskew;
101extern int nqsrv_writeslack;
102extern int nqsrv_maxlease;
103
104#ifdef VFS_LKM
105struct getfh_args;
106extern int getfh(struct proc *, struct getfh_args *, int *);
107struct nfssvc_args;
108extern int nfssvc(struct proc *, struct nfssvc_args *, int *);
109#endif
110
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
111/*
112 * Create the header for an rpc request packet
113 * The hsiz is the size of the rest of the nfs request header.
114 * (just used to decide if a cluster is a good idea)
115 */
116struct mbuf *
117nfsm_reqh(vp, procid, hsiz, bposp)
118 struct vnode *vp;

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

640 }
641
642 /*
643 * Initialize reply list and start timer
644 */
645 nfsreqh.r_prev = nfsreqh.r_next = &nfsreqh;
646 nfs_timer();
647
648 /*
649 * Set up lease_check and lease_updatetime so that other parts
650 * of the system can call us, if we are loadable.
651 */
652 lease_check = nfs_lease_check;
653 lease_updatetime = nfs_lease_updatetime;
654 vfsconf[MOUNT_NFS]->vfc_refcount++; /* make us non-unloadable */
655#ifdef VFS_LKM
656 sysent[SYS_nfssvc].sy_narg = 2;
657 sysent[SYS_nfssvc].sy_call = nfssvc;
658 sysent[SYS_getfh].sy_narg = 2;
659 sysent[SYS_getfh].sy_call = getfh;
660#endif
661
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 ---
662 return (0);
663}
664
665/*
666 * Attribute cache routines.
667 * nfs_loadattrcache() - loads or updates the cache contents from attributes
668 * that are on the mbuf list
669 * nfs_getattrcache() - returns valid attributes if found in cache, returns

--- 496 unchanged lines hidden ---