From db20a0f8a99f715a77366e518720612f043d5c9e Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Mon, 20 Feb 2012 18:42:37 +0530 Subject: libglusterfs: Implement circular buffer and event history Implement circular buffer framework, so that it can be used by other components such as event history management. And event history is implemented which can be used by xlator to dump some information to a file (such as information of some structure etc). Through statedump, history of each xlator can be dumped. An option called history should be given to the statedump command. Change-Id: I7c5e8f6bd1018584eaee856e933e7c4b94c6709c BUG: 795419 Signed-off-by: Raghavendra Bhat Reviewed-on: http://review.gluster.com/2769 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- cli/src/cli-cmd-parser.c | 2 +- cli/src/cli-cmd-volume.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'cli') diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c index e483a1bd4..703a06e84 100644 --- a/cli/src/cli-cmd-parser.c +++ b/cli/src/cli-cmd-parser.c @@ -1991,7 +1991,7 @@ gf_boolean_t cli_cmd_validate_dumpoption (const char *arg, char **option) { char *opwords[] = {"all", "nfs", "mem", "iobuf", "callpool", "priv", - "fd", "inode", NULL}; + "fd", "inode", "history", NULL}; char *w = NULL; w = str_getunamb (arg, opwords); diff --git a/cli/src/cli-cmd-volume.c b/cli/src/cli-cmd-volume.c index 6ab1515e3..37b41c81e 100644 --- a/cli/src/cli-cmd-volume.c +++ b/cli/src/cli-cmd-volume.c @@ -1831,7 +1831,7 @@ struct cli_cmd volume_cmds[] = { "Start healing of volume specified by "}, {"volume statedump [nfs] [all|mem|iobuf|callpool|priv|fd|" - "inode]...", + "inode|history]...", cli_cmd_volume_statedump_cbk, "perform statedump on bricks"}, -- cgit