From owner-svn-src-stable-8@FreeBSD.ORG Tue Apr 19 07:54:21 2011 Return-Path: Delivered-To: svn-src-stable-8@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 984AB106566C; Tue, 19 Apr 2011 07:54:21 +0000 (UTC) (envelope-from ru@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 865148FC08; Tue, 19 Apr 2011 07:54:21 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p3J7sLkp099078; Tue, 19 Apr 2011 07:54:21 GMT (envelope-from ru@svn.freebsd.org) Received: (from ru@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p3J7sL5q099076; Tue, 19 Apr 2011 07:54:21 GMT (envelope-from ru@svn.freebsd.org) Message-Id: <201104190754.p3J7sL5q099076@svn.freebsd.org> From: Ruslan Ermilov Date: Tue, 19 Apr 2011 07:54:21 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r220820 - stable/8/usr.bin/nfsstat X-BeenThere: svn-src-stable-8@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for only the 8-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Apr 2011 07:54:21 -0000 Author: ru Date: Tue Apr 19 07:54:21 2011 New Revision: 220820 URL: http://svn.freebsd.org/changeset/base/220820 Log: MFC r220596: Show client's access cache statistics. Modified: stable/8/usr.bin/nfsstat/nfsstat.c Directory Properties: stable/8/usr.bin/nfsstat/ (props changed) Modified: stable/8/usr.bin/nfsstat/nfsstat.c ============================================================================== --- stable/8/usr.bin/nfsstat/nfsstat.c Tue Apr 19 07:53:04 2011 (r220819) +++ stable/8/usr.bin/nfsstat/nfsstat.c Tue Apr 19 07:54:21 2011 (r220820) @@ -325,14 +325,15 @@ intpr(int clientOnly, int serverOnly) nfsstats.write_bios); printf("%9.9s %9.9s %9.9s %9.9s", "BioRLHits", "Misses", "BioD Hits", "Misses"); - printf(" %9.9s %9.9s\n", "DirE Hits", "Misses"); + printf(" %9.9s %9.9s %9.9s %9.9s\n", "DirE Hits", "Misses", "Accs Hits", "Misses"); printf("%9d %9d %9d %9d", nfsstats.biocache_readlinks-nfsstats.readlink_bios, nfsstats.readlink_bios, nfsstats.biocache_readdirs-nfsstats.readdir_bios, nfsstats.readdir_bios); - printf(" %9d %9d\n", - nfsstats.direofcache_hits, nfsstats.direofcache_misses); + printf(" %9d %9d %9d %9d\n", + nfsstats.direofcache_hits, nfsstats.direofcache_misses, + nfsstats.accesscache_hits, nfsstats.accesscache_misses); } if (serverOnly && !nfsrvstatsp) { printf("Server not present!\n");