Deleted Added
full compact
nfsargs.h (36176) nfsargs.h (36329)
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.34 1998/03/30 09:53:43 phk Exp $
37 * $Id: nfs.h,v 1.35 1998/05/19 07:11:22 peter Exp $
38 */
39
40#ifndef _NFS_NFS_H_
41#define _NFS_NFS_H_
42
43/*
44 * Tunable constants for nfs
45 */

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

113 * Expected allocation sizes for major data structures. If the actual size
114 * of the structure exceeds these sizes, then malloc() will be allocating
115 * almost twice the memory required. This is used in nfs_init() to warn
116 * the sysadmin that the size of a structure should be reduced.
117 * (These sizes are always a power of 2. If the kernel malloc() changes
118 * to one that does not allocate space in powers of 2 size, then this all
119 * becomes bunk!)
120 */
38 */
39
40#ifndef _NFS_NFS_H_
41#define _NFS_NFS_H_
42
43/*
44 * Tunable constants for nfs
45 */

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

113 * Expected allocation sizes for major data structures. If the actual size
114 * of the structure exceeds these sizes, then malloc() will be allocating
115 * almost twice the memory required. This is used in nfs_init() to warn
116 * the sysadmin that the size of a structure should be reduced.
117 * (These sizes are always a power of 2. If the kernel malloc() changes
118 * to one that does not allocate space in powers of 2 size, then this all
119 * becomes bunk!)
120 */
121#define NFS_NODEALLOC 256
122#define NFS_MNTALLOC 512
123#define NFS_SVCALLOC 256
124#define NFS_UIDALLOC 128
125
126/*
127 * Arguments to mount NFS
128 */
129#define NFS_ARGSVERSION 3 /* change when nfs_args changes */
130struct nfs_args {

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

302 u_long had_inetaddr;
303 struct sockaddr *had_nam;
304};
305
306#ifdef KERNEL
307
308#ifdef MALLOC_DECLARE
309MALLOC_DECLARE(M_NFSREQ);
121#define NFS_SVCALLOC 256
122#define NFS_UIDALLOC 128
123
124/*
125 * Arguments to mount NFS
126 */
127#define NFS_ARGSVERSION 3 /* change when nfs_args changes */
128struct nfs_args {

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

300 u_long had_inetaddr;
301 struct sockaddr *had_nam;
302};
303
304#ifdef KERNEL
305
306#ifdef MALLOC_DECLARE
307MALLOC_DECLARE(M_NFSREQ);
310MALLOC_DECLARE(M_NFSMNT);
311MALLOC_DECLARE(M_NFSDIROFF);
312MALLOC_DECLARE(M_NFSRVDESC);
313MALLOC_DECLARE(M_NFSUID);
314MALLOC_DECLARE(M_NQLEASE);
315MALLOC_DECLARE(M_NFSD);
316MALLOC_DECLARE(M_NFSBIGFH);
308MALLOC_DECLARE(M_NFSDIROFF);
309MALLOC_DECLARE(M_NFSRVDESC);
310MALLOC_DECLARE(M_NFSUID);
311MALLOC_DECLARE(M_NQLEASE);
312MALLOC_DECLARE(M_NFSD);
313MALLOC_DECLARE(M_NFSBIGFH);
314MALLOC_DECLARE(M_NFSHASH);
317#endif
318
315#endif
316
317#ifdef ZONE_INTERRUPT
318extern vm_zone_t nfsmount_zone;
319#endif
320
319struct uio; struct buf; struct vattr; struct nameidata; /* XXX */
320
321/*
322 * The set of signals the interrupt an I/O in progress for NFSMNT_INT mounts.
323 * What should be in this set is open to debate, but I believe that since
324 * I/O system calls on ufs are never interrupted by signals the set should
325 * be minimal. My reasoning is that many current programs that use signals
326 * such as SIGALRM will not expect file I/O system calls to be interrupted

--- 396 unchanged lines hidden ---
321struct uio; struct buf; struct vattr; struct nameidata; /* XXX */
322
323/*
324 * The set of signals the interrupt an I/O in progress for NFSMNT_INT mounts.
325 * What should be in this set is open to debate, but I believe that since
326 * I/O system calls on ufs are never interrupted by signals the set should
327 * be minimal. My reasoning is that many current programs that use signals
328 * such as SIGALRM will not expect file I/O system calls to be interrupted

--- 396 unchanged lines hidden ---