summaryrefslogtreecommitdiffstats
path: root/support/export/export.c
diff options
context:
space:
mode:
authordavid m. richter <richterd@citi.umich.edu>2007-08-13 15:16:14 -0400
committerNeil Brown <neilb@suse.de>2007-08-16 09:10:39 +1000
commit3779638fd686d951afbf5d3e9ff025614fea7748 (patch)
tree16f72b7a2a84a5fea9b29168bc1dd90cb6fead5a /support/export/export.c
parent75cacf291575cab787615921f6d44febde910f7b (diff)
downloadnfs-utils-3779638fd686d951afbf5d3e9ff025614fea7748.tar.gz
nfs-utils-3779638fd686d951afbf5d3e9ff025614fea7748.tar.xz
nfs-utils-3779638fd686d951afbf5d3e9ff025614fea7748.zip
nfsstat: Add -S/--since flag.
Read statistics from the file given with -S/--since and display the difference between those and the current statistics. Valid stat files are those in the form of /proc/net/rpc/nfs, /proc/net/rpc/nfsd, or any "pretty" output from nfsstat itself. Statistics that are missing from a "pretty" stat file are treated as zeroes. Similar to Neil Brown's suggestion, one might use this in conjunction with watch(1) like this: $ watch "nfsstat --since /tmp/stats; nfsstat >/tmp/stats" Signed-off-by: David M. Richter <richterd@citi.umich.edu> Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'support/export/export.c')
0 files changed, 0 insertions, 0 deletions