Date: Sat, 28 May 2022 23:28:14 GMT From: Rick Macklem <rmacklem@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: d92dc803f699 - main - nfsstat: Add an entry to output NFSPROC_APPENDWRITE count Message-ID: <202205282328.24SNSE4V002818@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by rmacklem: URL: https://cgit.FreeBSD.org/src/commit/?id=d92dc803f699c76873220e3fcb87940007be7d1b commit d92dc803f699c76873220e3fcb87940007be7d1b Author: Rick Macklem <rmacklem@FreeBSD.org> AuthorDate: 2022-05-28 23:27:02 +0000 Commit: Rick Macklem <rmacklem@FreeBSD.org> CommitDate: 2022-05-28 23:27:02 +0000 nfsstat: Add an entry to output NFSPROC_APPENDWRITE count Commit 5218d82c81f9 added a new NFSv4.1/4.2 procedure called AppendWrite that uses a Verify to avoid a separate Getattr RPC for the common case where the client knows the correct file size for O_APPEND writes. This patch modifies nfsstat so that it displays a count of these new RPCs for the "-E -c" option. --- usr.bin/nfsstat/nfsstat.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/usr.bin/nfsstat/nfsstat.c b/usr.bin/nfsstat/nfsstat.c index da075d57c52e..37bec0daa9ac 100644 --- a/usr.bin/nfsstat/nfsstat.c +++ b/usr.bin/nfsstat/nfsstat.c @@ -750,13 +750,16 @@ exp_intpr(int clientOnly, int serverOnly, int nfs41) (uintmax_t)ext_nfsstats.rpccnt[NFSPROC_COMMITDS]); xo_emit("{T:OpenLayout/%13.13s}{T:CreateLayout/%13.13s}" - "{T:BindConnSess/%13.13s}{T:LookupOpen/%13.13s}\n"); + "{T:BindConnSess/%13.13s}{T:LookupOpen/%13.13s}" + "{T:AppendWrite/%13.13s}\n"); xo_emit("{:openlayout/%13ju}{:createlayout/%13ju}" - "{:bindconnsess/%13ju}{:lookupopen/%13ju}\n", - (uintmax_t)ext_nfsstats.rpccnt[NFSPROC_OPENLAYGET], - (uintmax_t)ext_nfsstats.rpccnt[NFSPROC_CREATELAYGET], - (uintmax_t)ext_nfsstats.rpccnt[NFSPROC_BINDCONNTOSESS], - (uintmax_t)ext_nfsstats.rpccnt[NFSPROC_LOOKUPOPEN]); + "{:bindconnsess/%13ju}{:lookupopen/%13ju}" + "{:appendwrite/%13ju}\n", + (uintmax_t)ext_nfsstats.rpccnt[NFSPROC_OPENLAYGET], + (uintmax_t)ext_nfsstats.rpccnt[NFSPROC_CREATELAYGET], + (uintmax_t)ext_nfsstats.rpccnt[NFSPROC_BINDCONNTOSESS], + (uintmax_t)ext_nfsstats.rpccnt[NFSPROC_LOOKUPOPEN], + (uintmax_t)ext_nfsstats.rpccnt[NFSPROC_APPENDWRITE]); xo_close_container("nfsv41");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202205282328.24SNSE4V002818>