From 7a9b986ac511541949922560d8d32be878f6a923 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 6 Aug 2014 10:44:21 -0700 Subject: [PATCH] rados: add {read,write}_ops to df json Backport: firefly, dumpling Signed-off-by: Sage Weil --- src/tools/rados/rados.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tools/rados/rados.cc b/src/tools/rados/rados.cc index 807b660b3f13d..0bc21d642f9ce 100644 --- a/src/tools/rados/rados.cc +++ b/src/tools/rados/rados.cc @@ -1486,10 +1486,12 @@ static int rados_tool_common(const std::map < std::string, std::string > &opts, formatter->dump_format("num_objects_missing_on_primary", "%lld", s.num_objects_missing_on_primary); formatter->dump_format("num_objects_unfound", "%lld", s.num_objects_unfound); formatter->dump_format("num_objects_degraded", "%lld", s.num_objects_degraded); + formatter->dump_format("read_ops", "%lld", s.num_rd); formatter->dump_format("read_bytes", "%lld", s.num_rd); formatter->dump_format("read_kb", "%lld", s.num_rd_kb); formatter->dump_format("write_bytes", "%lld", s.num_wr); formatter->dump_format("write_kb", "%lld", s.num_wr_kb); + formatter->dump_format("write_ops", "%lld", s.num_wr); formatter->flush(cout); } if (formatter) { -- 2.39.5