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:
parent
e2f2b37089
commit
2b08b570cb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=221438
@ -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;
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user