Deleted Added
full compact
nfsrvstats.h (26420) nfsrvstats.h (27446)
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
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.27 1997/05/19 14:36:46 dfr Exp $
37 * $Id: nfs.h,v 1.28 1997/06/03 17:22:45 dfr Exp $
38 */
39
40#ifndef _NFS_NFS_H_
41#define _NFS_NFS_H_
42
43/*
44 * Tunable constants for nfs
45 */

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

517 ((o)->nd_eoff >= (n)->nd_off && \
518 !bcmp((caddr_t)&(o)->nd_fh, (caddr_t)&(n)->nd_fh, NFSX_V3FH))
519
520#define NFSW_SAMECRED(o, n) \
521 (((o)->nd_flag & ND_KERBAUTH) == ((n)->nd_flag & ND_KERBAUTH) && \
522 !bcmp((caddr_t)&(o)->nd_cr, (caddr_t)&(n)->nd_cr, \
523 sizeof (struct ucred)))
524
38 */
39
40#ifndef _NFS_NFS_H_
41#define _NFS_NFS_H_
42
43/*
44 * Tunable constants for nfs
45 */

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

517 ((o)->nd_eoff >= (n)->nd_off && \
518 !bcmp((caddr_t)&(o)->nd_fh, (caddr_t)&(n)->nd_fh, NFSX_V3FH))
519
520#define NFSW_SAMECRED(o, n) \
521 (((o)->nd_flag & ND_KERBAUTH) == ((n)->nd_flag & ND_KERBAUTH) && \
522 !bcmp((caddr_t)&(o)->nd_cr, (caddr_t)&(n)->nd_cr, \
523 sizeof (struct ucred)))
524
525/*
526 * Defines for WebNFS
527 */
528
529#define WEBNFS_ESC_CHAR '%'
530#define WEBNFS_SPECCHAR_START 0x80
531
532#define WEBNFS_NATIVE_CHAR 0x80
533/*
534 * ..
535 * Possibly more here in the future.
536 */
537
538/*
539 * Macro for converting escape characters in WebNFS pathnames.
540 * Should really be in libkern.
541 */
542
543#define HEXTOC(c) \
544 ((c) >= 'a' ? ((c) - ('a' - 10)) : \
545 ((c) >= 'A' ? ((c) - ('A' - 10)) : ((c) - '0')))
546#define HEXSTRTOI(p) \
547 ((HEXTOC(p[0]) << 4) + HEXTOC(p[1]))
548
525#ifdef NFS_DEBUG
526
527extern int nfs_debug;
528#define NFS_DEBUG_ASYNCIO 1 /* asynchronous i/o */
529#define NFS_DEBUG_WG 2 /* server write gathering */
530#define NFS_DEBUG_RC 4 /* server request caching */
531
532#define NFS_DPF(cat, args) \

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

559int nfs_readdirplusrpc __P((struct vnode *,register struct uio *,struct ucred *));
560int nfsm_disct __P((struct mbuf **,caddr_t *,int,int,caddr_t *));
561void nfsm_srvfattr __P((struct nfsrv_descript *,struct vattr *,struct nfs_fattr *));
562void nfsm_srvwcc __P((struct nfsrv_descript *,int,struct vattr *,int,struct vattr *,struct mbuf **,char **));
563void nfsm_srvpostopattr __P((struct nfsrv_descript *,int,struct vattr *,struct mbuf **,char **));
564int netaddr_match __P((int,union nethostaddr *,struct mbuf *));
565int nfs_request __P((struct vnode *,struct mbuf *,int,struct proc *,struct ucred *,struct mbuf **,struct mbuf **,caddr_t *));
566int nfs_loadattrcache __P((struct vnode **,struct mbuf **,caddr_t *,struct vattr *));
549#ifdef NFS_DEBUG
550
551extern int nfs_debug;
552#define NFS_DEBUG_ASYNCIO 1 /* asynchronous i/o */
553#define NFS_DEBUG_WG 2 /* server write gathering */
554#define NFS_DEBUG_RC 4 /* server request caching */
555
556#define NFS_DPF(cat, args) \

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

583int nfs_readdirplusrpc __P((struct vnode *,register struct uio *,struct ucred *));
584int nfsm_disct __P((struct mbuf **,caddr_t *,int,int,caddr_t *));
585void nfsm_srvfattr __P((struct nfsrv_descript *,struct vattr *,struct nfs_fattr *));
586void nfsm_srvwcc __P((struct nfsrv_descript *,int,struct vattr *,int,struct vattr *,struct mbuf **,char **));
587void nfsm_srvpostopattr __P((struct nfsrv_descript *,int,struct vattr *,struct mbuf **,char **));
588int netaddr_match __P((int,union nethostaddr *,struct mbuf *));
589int nfs_request __P((struct vnode *,struct mbuf *,int,struct proc *,struct ucred *,struct mbuf **,struct mbuf **,caddr_t *));
590int nfs_loadattrcache __P((struct vnode **,struct mbuf **,caddr_t *,struct vattr *));
567int nfs_namei __P((struct nameidata *,fhandle_t *,int,struct nfssvc_sock *,struct mbuf *,struct mbuf **,caddr_t *,struct vnode **,struct proc *,int));
591int nfs_namei __P((struct nameidata *,fhandle_t *,int,struct nfssvc_sock *,struct mbuf *,struct mbuf **,caddr_t *,struct vnode **,struct proc *,int,int));
568void nfsm_adj __P((struct mbuf *,int,int));
569int nfsm_mbuftouio __P((struct mbuf **,struct uio *,int,caddr_t *));
570void nfsrv_initcache __P((void));
571int nfs_getauth __P((struct nfsmount *,struct nfsreq *,struct ucred *,char **,int *,char *,int *,NFSKERBKEY_T));
572int nfs_getnickauth __P((struct nfsmount *,struct ucred *,char **,int *,char *,int));
573int nfs_savenickauth __P((struct nfsmount *,struct ucred *,int,NFSKERBKEY_T,struct mbuf **,char **,struct mbuf *));
574int nfs_adv __P((struct mbuf **,caddr_t *,int,int));
575void nfs_nhinit __P((void));

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

601int nfsrv3_access __P((struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
602 struct proc *procp, struct mbuf **mrq));
603int nfsrv_commit __P((struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
604 struct proc *procp, struct mbuf **mrq));
605int nfsrv_create __P((struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
606 struct proc *procp, struct mbuf **mrq));
607int nfsrv_fhtovp __P((fhandle_t *,int,struct vnode **,
608 struct ucred *,struct nfssvc_sock *,struct mbuf *,
592void nfsm_adj __P((struct mbuf *,int,int));
593int nfsm_mbuftouio __P((struct mbuf **,struct uio *,int,caddr_t *));
594void nfsrv_initcache __P((void));
595int nfs_getauth __P((struct nfsmount *,struct nfsreq *,struct ucred *,char **,int *,char *,int *,NFSKERBKEY_T));
596int nfs_getnickauth __P((struct nfsmount *,struct ucred *,char **,int *,char *,int));
597int nfs_savenickauth __P((struct nfsmount *,struct ucred *,int,NFSKERBKEY_T,struct mbuf **,char **,struct mbuf *));
598int nfs_adv __P((struct mbuf **,caddr_t *,int,int));
599void nfs_nhinit __P((void));

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

625int nfsrv3_access __P((struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
626 struct proc *procp, struct mbuf **mrq));
627int nfsrv_commit __P((struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
628 struct proc *procp, struct mbuf **mrq));
629int nfsrv_create __P((struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
630 struct proc *procp, struct mbuf **mrq));
631int nfsrv_fhtovp __P((fhandle_t *,int,struct vnode **,
632 struct ucred *,struct nfssvc_sock *,struct mbuf *,
609 int *,int));
633 int *,int,int));
634int nfsrv_setpublicfs __P((struct mount *, struct netexport *,
635 struct export_args *));
636int nfs_ispublicfh __P((fhandle_t *));
610int nfsrv_fsinfo __P((struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
611 struct proc *procp, struct mbuf **mrq));
612int nfsrv_getattr __P((struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
613 struct proc *procp, struct mbuf **mrq));
614int nfsrv_link __P((struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
615 struct proc *procp, struct mbuf **mrq));
616int nfsrv_lookup __P((struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
617 struct proc *procp, struct mbuf **mrq));

--- 40 unchanged lines hidden ---
637int nfsrv_fsinfo __P((struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
638 struct proc *procp, struct mbuf **mrq));
639int nfsrv_getattr __P((struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
640 struct proc *procp, struct mbuf **mrq));
641int nfsrv_link __P((struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
642 struct proc *procp, struct mbuf **mrq));
643int nfsrv_lookup __P((struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
644 struct proc *procp, struct mbuf **mrq));

--- 40 unchanged lines hidden ---