summaryrefslogtreecommitdiffstats
path: root/sys/fs/nfs
diff options
context:
space:
mode:
authorrmacklem <rmacklem@FreeBSD.org>2012-01-11 02:46:42 +0000
committerrmacklem <rmacklem@FreeBSD.org>2012-01-11 02:46:42 +0000
commit1a4786f9eb9f2de35e8e6b6c352b76df4d509814 (patch)
tree33c59291b48fa0c42b35787baf7cd7f833709059 /sys/fs/nfs
parent5066d3d4e0d1e4fe3de910ae60f4a94b8e623b68 (diff)
downloadFreeBSD-src-1a4786f9eb9f2de35e8e6b6c352b76df4d509814.zip
FreeBSD-src-1a4786f9eb9f2de35e8e6b6c352b76df4d509814.tar.gz
jwd@ reported via email that the "CacheSize" field reported by "nfsstat -e -s"
would go negative after using the "-z" option to zero out the stats. This patch fixes that by not zeroing out the srvcache_size field for "-z", since it is the size of the cache and not a counter. MFC after: 2 weeks
Diffstat (limited to 'sys/fs/nfs')
-rw-r--r--sys/fs/nfs/nfs_commonport.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/fs/nfs/nfs_commonport.c b/sys/fs/nfs/nfs_commonport.c
index 0320f47..aff8749 100644
--- a/sys/fs/nfs/nfs_commonport.c
+++ b/sys/fs/nfs/nfs_commonport.c
@@ -483,7 +483,6 @@ nfssvc_call(struct thread *p, struct nfssvc_args *uap, struct ucred *cred)
newnfsstats.srvcache_nonidemdonehits = 0;
newnfsstats.srvcache_misses = 0;
newnfsstats.srvcache_tcppeak = 0;
- newnfsstats.srvcache_size = 0;
newnfsstats.srvclients = 0;
newnfsstats.srvopenowners = 0;
newnfsstats.srvopens = 0;
OpenPOWER on IntegriCloud