Revert r221306, since NFSSVC_ZEROSTATS zero'd both client and

server stats, when separate modifiers for NFSSVC_GETSTATS for
each of client and server stats is what it required by nfsstat(1).
This commit is contained in:
Rick Macklem 2011-05-04 13:30:38 +00:00
parent e2f2b37089
commit 2b08b570cb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=221438
2 changed files with 0 additions and 3 deletions

View File

@ -404,8 +404,6 @@ nfssvc_call(struct thread *p, struct nfssvc_args *uap, struct ucred *cred)
} else if (uap->flag & NFSSVC_GETSTATS) {
error = copyout(&newnfsstats,
CAST_USER_ADDR_T(uap->argp), sizeof (newnfsstats));
if ((uap->flag & NFSSVC_ZEROSTATS) != 0 && error == 0)
bzero(&newnfsstats, sizeof(newnfsstats));
return (error);
} else if (uap->flag & NFSSVC_NFSUSERDPORT) {
u_short sockport;

View File

@ -64,6 +64,5 @@
#define NFSSVC_CBADDSOCK 0x00200000
#define NFSSVC_GETSTATS 0x00400000
#define NFSSVC_BACKUPSTABLE 0x00800000
#define NFSSVC_ZEROSTATS 0x01000000 /* modifier for GETSTATS */
#endif /* _NFS_NFSSVC_H */