]> git.decadent.org.uk Git - nfs-utils.git/commit
The nfsstat program reads /proc/net/rpc/* files to gets info about
authorJeff Layton <jlayton@redhat.com>
Mon, 23 Jun 2008 11:21:52 +0000 (07:21 -0400)
committerSteve Dickson <steved@redhat.com>
Mon, 23 Jun 2008 11:21:52 +0000 (07:21 -0400)
commit5be04020788598cb811e51c4b1342cf0796cbb65
tree5ce1355088cb3c1dd5b31b42188b2cadc5921e4a
parentc6acce67dce1cf89742a6bc4635c1eeda82e9591
The nfsstat program reads /proc/net/rpc/* files to gets info about
calls. This info is output as unsigned numbers (at least on any
relatively recent kernel). When nfsstat prints these numbers, they are
printed as signed integers. When the call counters reach 2^31, things
start being printed as negative numbers.

This patch changes nfsstat to read and print all counters as unsigned
integers. Tested by hacking up a kernel to initialize call counters to
2^31+1.

Thanks to Takafumi Miki for the initial version of this patch.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/nfsstat/nfsstat.c