From 133c370ec5e2688b6734acb087fe3769cb900a74 Mon Sep 17 00:00:00 2001 From: Dawit Alemu Date: Thu, 14 Nov 2013 12:52:14 -0500 Subject: cli: Add an option to fetch just incremental or cumulative I/0 information 'volume profile info' fetches both cumulative and incremental I/O statistics. There isn't a way to fetch just cumulative or incremental statistics. This change introduces two optional arguments, namely "incremental" and "cumulative", that can be tacked on to 'volume profile info'. In other words, the new command format is volume profile {start | info [incremental | cumulative] | stop} [nfs] 'volume profile info incremental' - fetches incremental stats 'volume profile info cumulative' - fetches cumulative stats 'volume profile info' - fetches incremental and cumulative stats Change-Id: I5ddb45d990542ea611d23d251efebfec46f472d0 BUG: 1030580 Signed-off-by: Dawit Alemu Reviewed-on: http://review.gluster.org/6264 Tested-by: Gluster Build System Reviewed-by: Krishnan Parthasarathi --- rpc/xdr/src/cli1-xdr.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'rpc') diff --git a/rpc/xdr/src/cli1-xdr.h b/rpc/xdr/src/cli1-xdr.h index e1cb34dc9..815384e80 100644 --- a/rpc/xdr/src/cli1-xdr.h +++ b/rpc/xdr/src/cli1-xdr.h @@ -140,7 +140,9 @@ enum gf1_cli_stats_op { GF_CLI_STATS_START = 1, GF_CLI_STATS_STOP = 2, GF_CLI_STATS_INFO = 3, - GF_CLI_STATS_TOP = 4, + GF_CLI_STATS_INFO_INCREMENTAL = 4, + GF_CLI_STATS_INFO_CUMULATIVE = 5, + GF_CLI_STATS_TOP = 6 }; typedef enum gf1_cli_stats_op gf1_cli_stats_op; -- cgit