nfsargs.h (12911) | nfsargs.h (13765) |
---|---|
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.15 1995/12/03 10:02:41 bde Exp $ | 37 * $Id: nfs.h,v 1.16 1995/12/17 21:12:05 phk Exp $ |
38 */ 39 40#ifndef _NFS_NFS_H_ 41#define _NFS_NFS_H_ 42 43#include <nfs/rpcv2.h> 44 45/* --- 18 unchanged lines hidden (view full) --- 64#define NFS_MAXATTRTIMO 60 65#endif 66#define NFS_WSIZE 8192 /* Def. write data size <= 8192 */ 67#define NFS_RSIZE 8192 /* Def. read data size <= 8192 */ 68#define NFS_READDIRSIZE 8192 /* Def. readdir size */ 69#define NFS_DEFRAHEAD 1 /* Def. read ahead # blocks */ 70#define NFS_MAXRAHEAD 4 /* Max. read ahead # blocks */ 71#define NFS_MAXUIDHASH 64 /* Max. # of hashed uid entries/mp */ | 38 */ 39 40#ifndef _NFS_NFS_H_ 41#define _NFS_NFS_H_ 42 43#include <nfs/rpcv2.h> 44 45/* --- 18 unchanged lines hidden (view full) --- 64#define NFS_MAXATTRTIMO 60 65#endif 66#define NFS_WSIZE 8192 /* Def. write data size <= 8192 */ 67#define NFS_RSIZE 8192 /* Def. read data size <= 8192 */ 68#define NFS_READDIRSIZE 8192 /* Def. readdir size */ 69#define NFS_DEFRAHEAD 1 /* Def. read ahead # blocks */ 70#define NFS_MAXRAHEAD 4 /* Max. read ahead # blocks */ 71#define NFS_MAXUIDHASH 64 /* Max. # of hashed uid entries/mp */ |
72#define NFS_MAXASYNCDAEMON 20 /* Max. number async_daemons runable */ | 72#define NFS_MAXASYNCDAEMON 20 /* Max. number async_daemons runnable */ |
73#define NFS_MAXGATHERDELAY 100 /* Max. write gather delay (msec) */ 74#ifndef NFS_GATHERDELAY 75#define NFS_GATHERDELAY 10 /* Default write gather delay (msec) */ 76#endif 77#define NFS_DIRBLKSIZ 4096 /* Must be a multiple of DIRBLKSIZ */ 78 79/* 80 * Oddballs 81 */ 82#define NMOD(a) ((a) % nfs_asyncdaemons) 83#define NFS_CMPFH(n, f, s) \ 84 ((n)->n_fhsize == (s) && !bcmp((caddr_t)(n)->n_fhp, (caddr_t)(f), (s))) 85#define NFS_ISV3(v) (VFSTONFS((v)->v_mount)->nm_flag & NFSMNT_NFSV3) 86#define NFS_SRVMAXDATA(n) \ 87 (((n)->nd_flag & ND_NFSV3) ? (((n)->nd_nam2) ? \ 88 NFS_MAXDGRAMDATA : NFS_MAXDATA) : NFS_V2MAXDATA) 89 90/* 91 * XXX | 73#define NFS_MAXGATHERDELAY 100 /* Max. write gather delay (msec) */ 74#ifndef NFS_GATHERDELAY 75#define NFS_GATHERDELAY 10 /* Default write gather delay (msec) */ 76#endif 77#define NFS_DIRBLKSIZ 4096 /* Must be a multiple of DIRBLKSIZ */ 78 79/* 80 * Oddballs 81 */ 82#define NMOD(a) ((a) % nfs_asyncdaemons) 83#define NFS_CMPFH(n, f, s) \ 84 ((n)->n_fhsize == (s) && !bcmp((caddr_t)(n)->n_fhp, (caddr_t)(f), (s))) 85#define NFS_ISV3(v) (VFSTONFS((v)->v_mount)->nm_flag & NFSMNT_NFSV3) 86#define NFS_SRVMAXDATA(n) \ 87 (((n)->nd_flag & ND_NFSV3) ? (((n)->nd_nam2) ? \ 88 NFS_MAXDGRAMDATA : NFS_MAXDATA) : NFS_V2MAXDATA) 89 90/* 91 * XXX |
92 * sys/buf.h should be editted to change B_APPENDWRITE --> B_NEEDCOMMIT, but | 92 * sys/buf.h should be edited to change B_APPENDWRITE --> B_NEEDCOMMIT, but |
93 * until then... 94 * Same goes for sys/malloc.h, which needs M_NFSDIROFF, 95 * M_NFSRVDESC and M_NFSBIGFH added. 96 * The VA_EXCLUSIVE flag should be added for va_vaflags and set for an 97 * exclusive create. 98 * The B_INVAFTERWRITE flag should be set to whatever is required by the 99 * buffer cache code to say "Invalidate the block after it is written back". 100 */ --- 503 unchanged lines hidden --- | 93 * until then... 94 * Same goes for sys/malloc.h, which needs M_NFSDIROFF, 95 * M_NFSRVDESC and M_NFSBIGFH added. 96 * The VA_EXCLUSIVE flag should be added for va_vaflags and set for an 97 * exclusive create. 98 * The B_INVAFTERWRITE flag should be set to whatever is required by the 99 * buffer cache code to say "Invalidate the block after it is written back". 100 */ --- 503 unchanged lines hidden --- |