From 1a4786f9eb9f2de35e8e6b6c352b76df4d509814 Mon Sep 17 00:00:00 2001 From: rmacklem Date: Wed, 11 Jan 2012 02:46:42 +0000 Subject: 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 --- sys/fs/nfs/nfs_commonport.c | 1 - 1 file changed, 1 deletion(-) (limited to 'sys/fs/nfs') 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; -- cgit v1.1