diff options
author | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2008-06-12 19:14:16 +0000 |
---|---|---|
committer | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2008-06-12 19:14:16 +0000 |
commit | 3d3206644e64e89ec391bfc42c96961e1bb9b527 (patch) | |
tree | f39a30ad8094bb56a7ef184f228dc9c1f7cbc6ab /usr.bin | |
parent | 251ec3348ff74e05e3b3031a9c76446282d245c4 (diff) |
add a statistic bit to count how often we change async to sync
you need to upgrade nfsstat and the relevant header files
ok beck@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/nfsstat/nfsstat.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/usr.bin/nfsstat/nfsstat.c b/usr.bin/nfsstat/nfsstat.c index ac7aebff664..3b7992e156d 100644 --- a/usr.bin/nfsstat/nfsstat.c +++ b/usr.bin/nfsstat/nfsstat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfsstat.c,v 1.29 2006/04/03 06:40:14 deraadt Exp $ */ +/* $OpenBSD: nfsstat.c,v 1.30 2008/06/12 19:14:15 thib Exp $ */ /* $NetBSD: nfsstat.c,v 1.7 1996/03/03 17:21:30 thorpej Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = static char sccsid[] = "from: @(#)nfsstat.c 8.1 (Berkeley) 6/6/93"; static char *rcsid = "$NetBSD: nfsstat.c,v 1.7 1996/03/03 17:21:30 thorpej Exp $"; #else -static char *rcsid = "$OpenBSD: nfsstat.c,v 1.29 2006/04/03 06:40:14 deraadt Exp $"; +static char *rcsid = "$OpenBSD: nfsstat.c,v 1.30 2008/06/12 19:14:15 thib Exp $"; #endif #endif /* not lint */ @@ -250,14 +250,16 @@ intpr(u_int display) nfsstats.rpccnt[NFSPROC_PATHCONF], nfsstats.rpccnt[NFSPROC_COMMIT]); printf("Rpc Info:\n"); - printf("%9.9s %9.9s %9.9s %9.9s %9.9s\n", - "TimedOut", "Invalid", "X Replies", "Retries", "Requests"); - printf("%9llu %9llu %9llu %9llu %9llu\n", + printf("%9.9s %9.9s %9.9s %9.9s %9.9s %9.9s\n", + "TimedOut", "Invalid", "X Replies", "Retries", "Requests", + "FrcSync"); + printf("%9llu %9llu %9llu %9llu %9llu %9llu\n", nfsstats.rpctimeouts, nfsstats.rpcinvalid, nfsstats.rpcunexpected, nfsstats.rpcretries, - nfsstats.rpcrequests); + nfsstats.rpcrequests, + nfsstats.forcedsync); printf("Cache Info:\n"); printf("%9.9s %9.9s %9.9s %9.9s", "Attr Hits", "Misses", "Lkup Hits", "Misses"); |