diff options
author | dg <dg@FreeBSD.org> | 1994-08-04 06:03:46 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1994-08-04 06:03:46 +0000 |
commit | 7c5373446c6d24f36f8ced5bca182c45a065847e (patch) | |
tree | ef370e1399fdcf362584daa53d4b02cf5cc15d46 /sys | |
parent | 0711a9cff6e788c36f8cb95fb9682aaac7ad3c26 (diff) | |
download | FreeBSD-src-7c5373446c6d24f36f8ced5bca182c45a065847e.zip FreeBSD-src-7c5373446c6d24f36f8ced5bca182c45a065847e.tar.gz |
Made NFS attribute cache timeouts kernel config file tunable via
NFS_MINATTRTIMO and NFS_MAXATTRTIMO.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/nfs/nfs.h | 6 | ||||
-rw-r--r-- | sys/nfsclient/nfs.h | 6 | ||||
-rw-r--r-- | sys/nfsclient/nfsargs.h | 6 | ||||
-rw-r--r-- | sys/nfsclient/nfsstats.h | 6 | ||||
-rw-r--r-- | sys/nfsserver/nfs.h | 6 | ||||
-rw-r--r-- | sys/nfsserver/nfsrvstats.h | 6 |
6 files changed, 30 insertions, 6 deletions
diff --git a/sys/nfs/nfs.h b/sys/nfs/nfs.h index 82fa6ca..999df08 100644 --- a/sys/nfs/nfs.h +++ b/sys/nfs/nfs.h @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs.h 8.1 (Berkeley) 6/10/93 - * $Id$ + * $Id: nfs.h,v 1.2 1994/08/02 07:52:04 davidg Exp $ */ /* @@ -51,8 +51,12 @@ #define NFS_MAXWINDOW 1024 /* Max number of outstanding requests */ #define NFS_RETRANS 10 /* Num of retrans for soft mounts */ #define NFS_MAXGRPS 16 /* Max. size of groups list */ +#ifndef NFS_MINATTRTIMO #define NFS_MINATTRTIMO 5 /* Attribute cache timeout in sec */ +#endif +#ifndef NFS_MAXATTRTIMO #define NFS_MAXATTRTIMO 60 +#endif #define NFS_WSIZE 8192 /* Def. write data size <= 8192 */ #define NFS_RSIZE 8192 /* Def. read data size <= 8192 */ #define NFS_DEFRAHEAD 1 /* Def. read ahead # blocks */ diff --git a/sys/nfsclient/nfs.h b/sys/nfsclient/nfs.h index 82fa6ca..999df08 100644 --- a/sys/nfsclient/nfs.h +++ b/sys/nfsclient/nfs.h @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs.h 8.1 (Berkeley) 6/10/93 - * $Id$ + * $Id: nfs.h,v 1.2 1994/08/02 07:52:04 davidg Exp $ */ /* @@ -51,8 +51,12 @@ #define NFS_MAXWINDOW 1024 /* Max number of outstanding requests */ #define NFS_RETRANS 10 /* Num of retrans for soft mounts */ #define NFS_MAXGRPS 16 /* Max. size of groups list */ +#ifndef NFS_MINATTRTIMO #define NFS_MINATTRTIMO 5 /* Attribute cache timeout in sec */ +#endif +#ifndef NFS_MAXATTRTIMO #define NFS_MAXATTRTIMO 60 +#endif #define NFS_WSIZE 8192 /* Def. write data size <= 8192 */ #define NFS_RSIZE 8192 /* Def. read data size <= 8192 */ #define NFS_DEFRAHEAD 1 /* Def. read ahead # blocks */ diff --git a/sys/nfsclient/nfsargs.h b/sys/nfsclient/nfsargs.h index 82fa6ca..999df08 100644 --- a/sys/nfsclient/nfsargs.h +++ b/sys/nfsclient/nfsargs.h @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs.h 8.1 (Berkeley) 6/10/93 - * $Id$ + * $Id: nfs.h,v 1.2 1994/08/02 07:52:04 davidg Exp $ */ /* @@ -51,8 +51,12 @@ #define NFS_MAXWINDOW 1024 /* Max number of outstanding requests */ #define NFS_RETRANS 10 /* Num of retrans for soft mounts */ #define NFS_MAXGRPS 16 /* Max. size of groups list */ +#ifndef NFS_MINATTRTIMO #define NFS_MINATTRTIMO 5 /* Attribute cache timeout in sec */ +#endif +#ifndef NFS_MAXATTRTIMO #define NFS_MAXATTRTIMO 60 +#endif #define NFS_WSIZE 8192 /* Def. write data size <= 8192 */ #define NFS_RSIZE 8192 /* Def. read data size <= 8192 */ #define NFS_DEFRAHEAD 1 /* Def. read ahead # blocks */ diff --git a/sys/nfsclient/nfsstats.h b/sys/nfsclient/nfsstats.h index 82fa6ca..999df08 100644 --- a/sys/nfsclient/nfsstats.h +++ b/sys/nfsclient/nfsstats.h @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs.h 8.1 (Berkeley) 6/10/93 - * $Id$ + * $Id: nfs.h,v 1.2 1994/08/02 07:52:04 davidg Exp $ */ /* @@ -51,8 +51,12 @@ #define NFS_MAXWINDOW 1024 /* Max number of outstanding requests */ #define NFS_RETRANS 10 /* Num of retrans for soft mounts */ #define NFS_MAXGRPS 16 /* Max. size of groups list */ +#ifndef NFS_MINATTRTIMO #define NFS_MINATTRTIMO 5 /* Attribute cache timeout in sec */ +#endif +#ifndef NFS_MAXATTRTIMO #define NFS_MAXATTRTIMO 60 +#endif #define NFS_WSIZE 8192 /* Def. write data size <= 8192 */ #define NFS_RSIZE 8192 /* Def. read data size <= 8192 */ #define NFS_DEFRAHEAD 1 /* Def. read ahead # blocks */ diff --git a/sys/nfsserver/nfs.h b/sys/nfsserver/nfs.h index 82fa6ca..999df08 100644 --- a/sys/nfsserver/nfs.h +++ b/sys/nfsserver/nfs.h @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs.h 8.1 (Berkeley) 6/10/93 - * $Id$ + * $Id: nfs.h,v 1.2 1994/08/02 07:52:04 davidg Exp $ */ /* @@ -51,8 +51,12 @@ #define NFS_MAXWINDOW 1024 /* Max number of outstanding requests */ #define NFS_RETRANS 10 /* Num of retrans for soft mounts */ #define NFS_MAXGRPS 16 /* Max. size of groups list */ +#ifndef NFS_MINATTRTIMO #define NFS_MINATTRTIMO 5 /* Attribute cache timeout in sec */ +#endif +#ifndef NFS_MAXATTRTIMO #define NFS_MAXATTRTIMO 60 +#endif #define NFS_WSIZE 8192 /* Def. write data size <= 8192 */ #define NFS_RSIZE 8192 /* Def. read data size <= 8192 */ #define NFS_DEFRAHEAD 1 /* Def. read ahead # blocks */ diff --git a/sys/nfsserver/nfsrvstats.h b/sys/nfsserver/nfsrvstats.h index 82fa6ca..999df08 100644 --- a/sys/nfsserver/nfsrvstats.h +++ b/sys/nfsserver/nfsrvstats.h @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs.h 8.1 (Berkeley) 6/10/93 - * $Id$ + * $Id: nfs.h,v 1.2 1994/08/02 07:52:04 davidg Exp $ */ /* @@ -51,8 +51,12 @@ #define NFS_MAXWINDOW 1024 /* Max number of outstanding requests */ #define NFS_RETRANS 10 /* Num of retrans for soft mounts */ #define NFS_MAXGRPS 16 /* Max. size of groups list */ +#ifndef NFS_MINATTRTIMO #define NFS_MINATTRTIMO 5 /* Attribute cache timeout in sec */ +#endif +#ifndef NFS_MAXATTRTIMO #define NFS_MAXATTRTIMO 60 +#endif #define NFS_WSIZE 8192 /* Def. write data size <= 8192 */ #define NFS_RSIZE 8192 /* Def. read data size <= 8192 */ #define NFS_DEFRAHEAD 1 /* Def. read ahead # blocks */ |