Deleted Added
full compact
nfsrvstats.h (9336) nfsrvstats.h (9759)
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.h 8.1 (Berkeley) 6/10/93
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.h 8.1 (Berkeley) 6/10/93
37 * $Id: nfs.h,v 1.9 1995/02/14 06:22:18 phk Exp $
37 * $Id: nfs.h,v 1.10 1995/06/27 11:06:33 dfr Exp $
38 */
39
40#ifndef _NFS_NFS_H_
41#define _NFS_NFS_H_
42
43/*
44 * Tunable constants for nfs
45 */

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

299 int r_procnum; /* NFS procedure number */
300 int r_rtt; /* RTT for rpc */
301 struct proc *r_procp; /* Proc that did I/O system call */
302};
303
304/*
305 * Queue head for nfsreq's
306 */
38 */
39
40#ifndef _NFS_NFS_H_
41#define _NFS_NFS_H_
42
43/*
44 * Tunable constants for nfs
45 */

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

299 int r_procnum; /* NFS procedure number */
300 int r_rtt; /* RTT for rpc */
301 struct proc *r_procp; /* Proc that did I/O system call */
302};
303
304/*
305 * Queue head for nfsreq's
306 */
307TAILQ_HEAD(, nfsreq) nfs_reqq;
307extern TAILQ_HEAD(nfs_reqq, nfsreq) nfs_reqq;
308
309/* Flag values for r_flags */
310#define R_TIMING 0x01 /* timing request (in mntp) */
311#define R_SENT 0x02 /* request has been sent */
312#define R_SOFTTERM 0x04 /* soft mnt, too many retries */
313#define R_INTR 0x08 /* intr mnt, signal pending */
314#define R_SOCKERR 0x10 /* Fatal error on socket */
315#define R_TPRINTFMSG 0x20 /* Did a tprintf msg. */

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

393#define SLP_VALID 0x01
394#define SLP_DOREC 0x02
395#define SLP_NEEDQ 0x04
396#define SLP_DISCONN 0x08
397#define SLP_GETSTREAM 0x10
398#define SLP_LASTFRAG 0x20
399#define SLP_ALLFLAGS 0xff
400
308
309/* Flag values for r_flags */
310#define R_TIMING 0x01 /* timing request (in mntp) */
311#define R_SENT 0x02 /* request has been sent */
312#define R_SOFTTERM 0x04 /* soft mnt, too many retries */
313#define R_INTR 0x08 /* intr mnt, signal pending */
314#define R_SOCKERR 0x10 /* Fatal error on socket */
315#define R_TPRINTFMSG 0x20 /* Did a tprintf msg. */

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

393#define SLP_VALID 0x01
394#define SLP_DOREC 0x02
395#define SLP_NEEDQ 0x04
396#define SLP_DISCONN 0x08
397#define SLP_GETSTREAM 0x10
398#define SLP_LASTFRAG 0x20
399#define SLP_ALLFLAGS 0xff
400
401TAILQ_HEAD(, nfssvc_sock) nfssvc_sockhead;
402int nfssvc_sockhead_flag;
401extern TAILQ_HEAD(nfssvc_sockhead, nfssvc_sock) nfssvc_sockhead;
402extern int nfssvc_sockhead_flag;
403#define SLP_INIT 0x01
404#define SLP_WANTINIT 0x02
405
406/*
407 * One of these structures is allocated for each nfsd.
408 */
409struct nfsd {
410 TAILQ_ENTRY(nfsd) nfsd_chain; /* List of all nfsd's */

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

459#define ND_CHECK 0x04
460#define ND_LEASE (ND_READ | ND_WRITE | ND_CHECK)
461#define ND_NFSV3 0x08
462#define ND_NQNFS 0x10
463#define ND_KERBNICK 0x20
464#define ND_KERBFULL 0x40
465#define ND_KERBAUTH (ND_KERBNICK | ND_KERBFULL)
466
403#define SLP_INIT 0x01
404#define SLP_WANTINIT 0x02
405
406/*
407 * One of these structures is allocated for each nfsd.
408 */
409struct nfsd {
410 TAILQ_ENTRY(nfsd) nfsd_chain; /* List of all nfsd's */

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

459#define ND_CHECK 0x04
460#define ND_LEASE (ND_READ | ND_WRITE | ND_CHECK)
461#define ND_NFSV3 0x08
462#define ND_NQNFS 0x10
463#define ND_KERBNICK 0x20
464#define ND_KERBFULL 0x40
465#define ND_KERBAUTH (ND_KERBNICK | ND_KERBFULL)
466
467TAILQ_HEAD(, nfsd) nfsd_head;
468int nfsd_head_flag;
467extern TAILQ_HEAD(nfsd_head, nfsd) nfsd_head;
468extern int nfsd_head_flag;
469#define NFSD_CHECKSLP 0x01
470
471/*
472 * These macros compare nfsrv_descript structures.
473 */
474#define NFSW_CONTIG(o, n) \
475 ((o)->nd_eoff >= (n)->nd_off && \
476 !bcmp((caddr_t)&(o)->nd_fh, (caddr_t)&(n)->nd_fh, NFSX_V3FH))

--- 76 unchanged lines hidden ---
469#define NFSD_CHECKSLP 0x01
470
471/*
472 * These macros compare nfsrv_descript structures.
473 */
474#define NFSW_CONTIG(o, n) \
475 ((o)->nd_eoff >= (n)->nd_off && \
476 !bcmp((caddr_t)&(o)->nd_fh, (caddr_t)&(n)->nd_fh, NFSX_V3FH))

--- 76 unchanged lines hidden ---