diff options
author | msmith <msmith@FreeBSD.org> | 1998-11-15 20:30:04 +0000 |
---|---|---|
committer | msmith <msmith@FreeBSD.org> | 1998-11-15 20:30:04 +0000 |
commit | c6f6e597c12e532454e186ccbab2cfb6e8aa240f (patch) | |
tree | 93d20bfede1eb9fecdfcc976a20819d9134e24ef /etc/rc.d | |
parent | 98137ab1d10c9f9c9cb374f77acee2426be69793 (diff) | |
download | FreeBSD-src-c6f6e597c12e532454e186ccbab2cfb6e8aa240f.zip FreeBSD-src-c6f6e597c12e532454e186ccbab2cfb6e8aa240f.tar.gz |
Implement the nfs_access_cache variable, allowing us to set the timeout for
the NFS client's ACCESS cache.
Diffstat (limited to 'etc/rc.d')
-rw-r--r-- | etc/rc.d/netoptions | 5 | ||||
-rw-r--r-- | etc/rc.d/network1 | 5 | ||||
-rw-r--r-- | etc/rc.d/network2 | 5 | ||||
-rw-r--r-- | etc/rc.d/network3 | 5 | ||||
-rw-r--r-- | etc/rc.d/routing | 5 |
5 files changed, 20 insertions, 5 deletions
diff --git a/etc/rc.d/netoptions b/etc/rc.d/netoptions index 30efc0d..12654f5 100644 --- a/etc/rc.d/netoptions +++ b/etc/rc.d/netoptions @@ -1,6 +1,6 @@ #!/bin/sh - # -# $Id: rc.network,v 1.33 1998/10/06 19:24:14 phk Exp $ +# $Id: rc.network,v 1.34 1998/11/11 05:23:44 peter Exp $ # From: @(#)netstart 5.9 (Berkeley) 3/30/91 # Note that almost all the user-configurable behavior is no longer in @@ -258,6 +258,9 @@ network_pass3() { if [ "X${nfs_client_enable}" = X"YES" ]; then echo -n ' nfsiod'; nfsiod ${nfs_client_flags} + if [ ! "X${nfs_access_cache}" = X ]; then + sysctl -w vfs.nfs.access_cache_timeout=${nfs_access_cache} + fi fi if [ "X${amd_enable}" = X"YES" ]; then diff --git a/etc/rc.d/network1 b/etc/rc.d/network1 index 30efc0d..12654f5 100644 --- a/etc/rc.d/network1 +++ b/etc/rc.d/network1 @@ -1,6 +1,6 @@ #!/bin/sh - # -# $Id: rc.network,v 1.33 1998/10/06 19:24:14 phk Exp $ +# $Id: rc.network,v 1.34 1998/11/11 05:23:44 peter Exp $ # From: @(#)netstart 5.9 (Berkeley) 3/30/91 # Note that almost all the user-configurable behavior is no longer in @@ -258,6 +258,9 @@ network_pass3() { if [ "X${nfs_client_enable}" = X"YES" ]; then echo -n ' nfsiod'; nfsiod ${nfs_client_flags} + if [ ! "X${nfs_access_cache}" = X ]; then + sysctl -w vfs.nfs.access_cache_timeout=${nfs_access_cache} + fi fi if [ "X${amd_enable}" = X"YES" ]; then diff --git a/etc/rc.d/network2 b/etc/rc.d/network2 index 30efc0d..12654f5 100644 --- a/etc/rc.d/network2 +++ b/etc/rc.d/network2 @@ -1,6 +1,6 @@ #!/bin/sh - # -# $Id: rc.network,v 1.33 1998/10/06 19:24:14 phk Exp $ +# $Id: rc.network,v 1.34 1998/11/11 05:23:44 peter Exp $ # From: @(#)netstart 5.9 (Berkeley) 3/30/91 # Note that almost all the user-configurable behavior is no longer in @@ -258,6 +258,9 @@ network_pass3() { if [ "X${nfs_client_enable}" = X"YES" ]; then echo -n ' nfsiod'; nfsiod ${nfs_client_flags} + if [ ! "X${nfs_access_cache}" = X ]; then + sysctl -w vfs.nfs.access_cache_timeout=${nfs_access_cache} + fi fi if [ "X${amd_enable}" = X"YES" ]; then diff --git a/etc/rc.d/network3 b/etc/rc.d/network3 index 30efc0d..12654f5 100644 --- a/etc/rc.d/network3 +++ b/etc/rc.d/network3 @@ -1,6 +1,6 @@ #!/bin/sh - # -# $Id: rc.network,v 1.33 1998/10/06 19:24:14 phk Exp $ +# $Id: rc.network,v 1.34 1998/11/11 05:23:44 peter Exp $ # From: @(#)netstart 5.9 (Berkeley) 3/30/91 # Note that almost all the user-configurable behavior is no longer in @@ -258,6 +258,9 @@ network_pass3() { if [ "X${nfs_client_enable}" = X"YES" ]; then echo -n ' nfsiod'; nfsiod ${nfs_client_flags} + if [ ! "X${nfs_access_cache}" = X ]; then + sysctl -w vfs.nfs.access_cache_timeout=${nfs_access_cache} + fi fi if [ "X${amd_enable}" = X"YES" ]; then diff --git a/etc/rc.d/routing b/etc/rc.d/routing index 30efc0d..12654f5 100644 --- a/etc/rc.d/routing +++ b/etc/rc.d/routing @@ -1,6 +1,6 @@ #!/bin/sh - # -# $Id: rc.network,v 1.33 1998/10/06 19:24:14 phk Exp $ +# $Id: rc.network,v 1.34 1998/11/11 05:23:44 peter Exp $ # From: @(#)netstart 5.9 (Berkeley) 3/30/91 # Note that almost all the user-configurable behavior is no longer in @@ -258,6 +258,9 @@ network_pass3() { if [ "X${nfs_client_enable}" = X"YES" ]; then echo -n ' nfsiod'; nfsiod ${nfs_client_flags} + if [ ! "X${nfs_access_cache}" = X ]; then + sysctl -w vfs.nfs.access_cache_timeout=${nfs_access_cache} + fi fi if [ "X${amd_enable}" = X"YES" ]; then |