From afc623f85e766a9006d7ba7cb81123ca3e10a719 Mon Sep 17 00:00:00 2001 From: Kaushal M Date: Sun, 13 May 2012 09:32:56 +0530 Subject: cli,glusterd,debug/io-stats: Clear top stats Introduces a cli command to clear "volume top" stats. The syntax for clearing stats is # gluster volume top clear [nfs] This patch also fixes io-stats xlator, to create ios_stat struct for open fop as well, along with create and mkdir fops. This allows stats to be recorded for files that exist already after clearing stats or restarting brick process, which would not occur otherwise. Change-Id: I1b87e192025be7bb8a51eaff3d09c747d05d7def BUG: 771709 Signed-off-by: Kaushal M Reviewed-on: http://review.gluster.com/3334 Tested-by: Gluster Build System Reviewed-by: Amar Tumballi Reviewed-by: Anand Avati --- cli/src/cli-cmd-volume.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/src/cli-cmd-volume.c') diff --git a/cli/src/cli-cmd-volume.c b/cli/src/cli-cmd-volume.c index bad9351fd52..704f9dddb7d 100644 --- a/cli/src/cli-cmd-volume.c +++ b/cli/src/cli-cmd-volume.c @@ -1890,8 +1890,8 @@ struct cli_cmd volume_cmds[] = { "quota translator specific operations"}, { "volume top {[open|read|write|opendir|readdir [nfs]] " - "|[read-perf|write-perf [nfs|{bs count }]]} " - " [brick ] [list-cnt ]", + "|[read-perf|write-perf [nfs|{bs count }]]" + "|[clear [nfs]]} [brick ] [list-cnt ]", cli_cmd_volume_top_cbk, "volume top operations"}, -- cgit