nfsmount.h (12911) | nfsmount.h (19449) |
---|---|
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 * @(#)nfsmount.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 * @(#)nfsmount.h 8.1 (Berkeley) 6/10/93 |
37 * $Id: nfsmount.h,v 1.6 1995/11/21 12:54:40 bde Exp $ | 37 * $Id: nfsmount.h,v 1.7 1995/12/17 21:12:36 phk Exp $ |
38 */ 39 40#ifndef _NFS_NFSMOUNT_H_ 41#define _NFS_NFSMOUNT_H_ 42 43/* 44 * Mount structure. 45 * One allocated on every NFS mount. --- 31 unchanged lines hidden (view full) --- 77 char *nm_authstr; /* Authenticator string */ 78 char *nm_verfstr; /* and the verifier */ 79 int nm_verflen; 80 u_char nm_verf[NFSX_V3WRITEVERF]; /* V3 write verifier */ 81 NFSKERBKEY_T nm_key; /* and the session key */ 82 int nm_numuids; /* Number of nfsuid mappings */ 83 TAILQ_HEAD(, nfsuid) nm_uidlruhead; /* Lists of nfsuid mappings */ 84 LIST_HEAD(, nfsuid) nm_uidhashtbl[NFS_MUIDHASHSIZ]; | 38 */ 39 40#ifndef _NFS_NFSMOUNT_H_ 41#define _NFS_NFSMOUNT_H_ 42 43/* 44 * Mount structure. 45 * One allocated on every NFS mount. --- 31 unchanged lines hidden (view full) --- 77 char *nm_authstr; /* Authenticator string */ 78 char *nm_verfstr; /* and the verifier */ 79 int nm_verflen; 80 u_char nm_verf[NFSX_V3WRITEVERF]; /* V3 write verifier */ 81 NFSKERBKEY_T nm_key; /* and the session key */ 82 int nm_numuids; /* Number of nfsuid mappings */ 83 TAILQ_HEAD(, nfsuid) nm_uidlruhead; /* Lists of nfsuid mappings */ 84 LIST_HEAD(, nfsuid) nm_uidhashtbl[NFS_MUIDHASHSIZ]; |
85 TAILQ_HEAD(, buf) nm_bufq; /* async io buffer queue */ 86 short nm_bufqlen; /* number of buffers in queue */ 87 short nm_bufqwant; /* process wants to add to the queue */ 88 int nm_bufqiods; /* number of iods processing queue */ |
|
85}; 86 87#if defined(KERNEL) || defined(_KERNEL) 88/* 89 * Convert mount ptr to nfsmount ptr. 90 */ 91#define VFSTONFS(mp) ((struct nfsmount *)((mp)->mnt_data)) | 89}; 90 91#if defined(KERNEL) || defined(_KERNEL) 92/* 93 * Convert mount ptr to nfsmount ptr. 94 */ 95#define VFSTONFS(mp) ((struct nfsmount *)((mp)->mnt_data)) |
96 97#ifdef NFS_DEBUG 98 99extern int nfs_debug; 100#define NFS_DEBUG_ASYNCIO 1 101 102#define NFS_DPF(cat, args) \ 103 do { \ 104 if (nfs_debug & NFS_DEBUG_##cat) printf args; \ 105 } while (0) 106 107#else 108 109#define NFS_DPF(cat, args) 110 111#endif 112 |
|
92#endif /* KERNEL */ 93 94#endif | 113#endif /* KERNEL */ 114 115#endif |