Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 144854 Details for
Bug 221527
nfsstat needs v4 support
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Upstream patch
nfs-utils-1.0.8-003-nfsstat_nfsv4_server_stats.dif (text/plain), 2.82 KB, created by
Steve Dickson
on 2007-01-04 22:15:20 UTC
(
hide
)
Description:
Upstream patch
Filename:
MIME Type:
Creator:
Steve Dickson
Created:
2007-01-04 22:15:20 UTC
Size:
2.82 KB
patch
obsolete
> >Signed-off-by: Shankar Anand<shanand@novell.com> >Signed-off-by: Kevin Coffman <kwc@citi.umich.edu> > >This patch adds code to nfsstat to read /proc/net/rpc/nfsd for >nfsv4 server statistics and print them. > > > >--- > > nfs-utils-1.0.8-kwc/utils/nfsstat/nfsstat.c | 19 ++++++++++++++++++- > 1 files changed, 18 insertions(+), 1 deletion(-) > >diff -puN utils/nfsstat/nfsstat.c~nfsstat_nfsv4_server_stats utils/nfsstat/nfsstat.c >--- nfs-utils-1.0.8/utils/nfsstat/nfsstat.c~nfsstat_nfsv4_server_stats 2006-06-16 16:00:42.245320000 -0400 >+++ nfs-utils-1.0.8-kwc/utils/nfsstat/nfsstat.c 2006-06-16 16:00:42.367320000 -0400 >@@ -29,6 +29,7 @@ static unsigned int svcv3info[24]; /* NF > static unsigned int cltv3info[24]; /* NFSv3 call counts ([0] == 22) */ > static unsigned int svcv4info[4]; /* NFSv4 call counts ([0] == 2) */ > static unsigned int cltv4info[34]; /* NFSv4 call counts ([0] == 32) */ >+static unsigned int svcv4opinfo[39];/* NFSv4 call counts ([0] == 37) */ > static unsigned int svcnetinfo[5]; /* 0 # of received packets > * 1 UDP packets > * 2 TCP packets >@@ -99,6 +100,16 @@ static const char * nfscltv4name[32] = { > "statfs", "readlink", "readdir", "server_caps", "delegreturn", > }; > >+static const char * nfssvrv4opname[37] = { >+ "access", "close", "commit", "create", "delegpurge", "delegreturn", >+ "getattr", "getfh", "link", "lock", "lockt", "locku", >+ "lookup", "lookup_root", "nverify", "open", "openattr", "open_conf", >+ "open_dgrd", "putfh", "putpubfh", "putrootfh", "read", "readdir", >+ "readlink", "remove", "rename", "renew", "restorefh", "savefh", >+ "secinfo", "setattr", "setcltid", "setcltidconf", "verify", "write", >+ "rellockowner" >+}; >+ > typedef struct statinfo { > char *tag; > int nrvals; >@@ -115,6 +126,7 @@ static statinfo svcinfo[] = { > { "proc2", STRUCTSIZE(svcv2info), svcv2info }, > { "proc3", STRUCTSIZE(svcv3info), svcv3info }, > { "proc4", STRUCTSIZE(svcv4info), svcv4info }, >+ { "proc4ops", STRUCTSIZE(svcv4opinfo),svcv4opinfo}, > { NULL, 0, NULL } > }; > >@@ -381,11 +393,16 @@ main(int argc, char **argv) > "Server nfs v3:\n", > nfsv3name, svcv3info + 1, sizeof(nfsv3name)/sizeof(char *) > ); >- if ((opt_prt & PRNT_V4) || ((opt_prt & PRNT_AUTO) && svcv4info[0] && svcv4info[svcv4info[0]+1] != svcv4info[0])) >+ if ((opt_prt & PRNT_V4) || ((opt_prt & PRNT_AUTO) && svcv4info[0] && svcv4info[svcv4info[0]+1] != svcv4info[0])) { > print_callstats( > "Server nfs v4:\n", > nfssvrv4name, svcv4info + 1, sizeof(nfssvrv4name)/sizeof(char *) > ); >+ print_callstats( >+ "Server nfs v4 operations:\n", >+ nfssvrv4opname, svcv4opinfo + 1, sizeof(nfssvrv4opname)/sizeof(char *) >+ ); >+ } > } > } > > >_
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 221527
: 144854