1/* 2 * Copyright (c) 1989, 1993, 1995 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.h 8.4 (Berkeley) 5/1/95 |
37 * $Id: nfs.h,v 1.24 1997/03/29 12:34:33 bde Exp $ |
38 */ 39 40#ifndef _NFS_NFS_H_ 41#define _NFS_NFS_H_ 42 43/* 44 * Tunable constants for nfs 45 */ --- 466 unchanged lines hidden (view full) --- 512 ((o)->nd_eoff >= (n)->nd_off && \ 513 !bcmp((caddr_t)&(o)->nd_fh, (caddr_t)&(n)->nd_fh, NFSX_V3FH)) 514 515#define NFSW_SAMECRED(o, n) \ 516 (((o)->nd_flag & ND_KERBAUTH) == ((n)->nd_flag & ND_KERBAUTH) && \ 517 !bcmp((caddr_t)&(o)->nd_cr, (caddr_t)&(n)->nd_cr, \ 518 sizeof (struct ucred))) 519 |
520#ifdef NFS_DEBUG |
521 |
522extern int nfs_debug; 523#define NFS_DEBUG_ASYNCIO 1 /* asynchronous i/o */ 524#define NFS_DEBUG_WG 2 /* server write gathering */ 525#define NFS_DEBUG_RC 4 /* server request caching */ 526 527#define NFS_DPF(cat, args) \ 528 do { \ 529 if (nfs_debug & NFS_DEBUG_##cat) printf args; \ 530 } while (0) 531 532#else 533 534#define NFS_DPF(cat, args) 535 536#endif 537 |
538int nfs_init __P((struct vfsconf *vfsp)); 539int nfs_reply __P((struct nfsreq *)); 540int nfs_getreq __P((struct nfsrv_descript *,struct nfsd *,int)); 541int nfs_send __P((struct socket *,struct mbuf *,struct mbuf *,struct nfsreq *)); 542int nfs_rephead __P((int,struct nfsrv_descript *,struct nfssvc_sock *,int,int,u_quad_t *,struct mbuf **,struct mbuf **,caddr_t *)); 543int nfs_sndlock __P((int *,struct nfsreq *)); 544void nfs_sndunlock __P((int *flagp)); 545int nfs_disct __P((struct mbuf **,caddr_t *,int,int,caddr_t *)); --- 107 unchanged lines hidden --- |