From b61103d7ea35a2ea190465c836fe0d22f9f6f8c1 Mon Sep 17 00:00:00 2001 From: Kaushal M Date: Fri, 9 Mar 2012 09:38:36 +0530 Subject: core, cli : Changes to statedump This patch, * Enables missing inodectx, fdctx dumpops for cli statedump command. * Reintroduce changes introduced in statedump.c by 489a7a10 which were overwritten by db20a0f8. * Change strncasecmp() in gf_proc_dump_parse_set_option() to strcasecmp() to properly parse similar options like fd-fdctx, inode-inodectx Change-Id: I85ad854dce73048617b933d29cf360af9d0ed90a BUG: 797788 Signed-off-by: Kaushal M Reviewed-on: http://review.gluster.com/2914 Tested-by: Gluster Build System Reviewed-by: Amar Tumballi --- cli/src/cli-cmd-parser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cli/src/cli-cmd-parser.c') diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c index 0f13928bbfc..d41493b6cf7 100644 --- a/cli/src/cli-cmd-parser.c +++ b/cli/src/cli-cmd-parser.c @@ -2027,7 +2027,8 @@ gf_boolean_t cli_cmd_validate_dumpoption (const char *arg, char **option) { char *opwords[] = {"all", "nfs", "mem", "iobuf", "callpool", "priv", - "fd", "inode", "history", NULL}; + "fd", "inode", "history", "inodectx", "fdctx", + NULL}; char *w = NULL; w = str_getunamb (arg, opwords); -- cgit