diff options
author | rmacklem <rmacklem@FreeBSD.org> | 2011-05-15 20:52:43 +0000 |
---|---|---|
committer | rmacklem <rmacklem@FreeBSD.org> | 2011-05-15 20:52:43 +0000 |
commit | 7eee8201407548a3ff20e2bb0fa63c28fb14c576 (patch) | |
tree | 6ea029756d9437ab4e6dd7fdf2137de83de1c74d /usr.bin/nfsstat/nfsstat.c | |
parent | 4675dfde1b670b631667c788409a96c597c853f5 (diff) | |
download | FreeBSD-src-7eee8201407548a3ff20e2bb0fa63c28fb14c576.zip FreeBSD-src-7eee8201407548a3ff20e2bb0fa63c28fb14c576.tar.gz |
Change the sysctl naming for the old and new NFS clients
to vfs.oldnfs.xxx and vfs.nfs.xxx respectively. This makes
the default nfs client use vfs.nfs.xxx after r221124.
Diffstat (limited to 'usr.bin/nfsstat/nfsstat.c')
-rw-r--r-- | usr.bin/nfsstat/nfsstat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/nfsstat/nfsstat.c b/usr.bin/nfsstat/nfsstat.c index b833123..b8f29e6 100644 --- a/usr.bin/nfsstat/nfsstat.c +++ b/usr.bin/nfsstat/nfsstat.c @@ -221,10 +221,10 @@ readstats(struct nfsstats **stp, struct nfsrvstats **srvstp, int zero) if (zero) bzero(&zerostat, sizeof(zerostat)); buflen = sizeof(struct nfsstats); - if (*stp != NULL && sysctlbyname("vfs.nfs.nfsstats", *stp, + if (*stp != NULL && sysctlbyname("vfs.oldnfs.nfsstats", *stp, &buflen, zero ? &zerostat : NULL, zero ? buflen : 0) < 0) { if (errno != ENOENT) - err(1, "sysctl: vfs.nfs.nfsstats"); + err(1, "sysctl: vfs.oldnfs.nfsstats"); *stp = NULL; } buflen = sizeof(struct nfsrvstats); |