From e99cb60af1e153efd616014da6a54d2f95c119d1 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Wed, 4 Jan 2012 00:08:14 +0530 Subject: glusterd: provide option to take statedump of the nfs server Currently the cli command for taking statedump is for glusterfs servers only. Statedump of nfs server cannot be taken. With this patch if one gives nfs as an option to the statedump command, then the nfs-server's statedump is taken. Change-Id: I4ef7a68e608da4aa2f17541d7b42cd78ce2624b6 BUG: 771587 Signed-off-by: Raghavendra Bhat Reviewed-on: http://review.gluster.com/2579 Tested-by: Gluster Build System Reviewed-by: Amar Tumballi Reviewed-by: Vijay Bellur --- cli/src/cli-cmd-parser.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (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 afd668ea2d2..ef69235d673 100644 --- a/cli/src/cli-cmd-parser.c +++ b/cli/src/cli-cmd-parser.c @@ -1934,8 +1934,8 @@ cli_cmd_volume_status_parse (const char **words, int wordcount, gf_boolean_t cli_cmd_validate_dumpoption (const char *option) { - char *opwords[] = {"all", "mem", "iobuf", "callpool", "priv", "fd", - "inode", NULL}; + char *opwords[] = {"all", "nfs", "mem", "iobuf", "callpool", "priv", + "fd", "inode", NULL}; char *w = NULL; w = str_getunamb (option, opwords); @@ -1965,6 +1965,7 @@ cli_cmd_volume_statedump_options_parse (const char **words, int wordcount, strncat (option_str, words[i], sizeof (words [i])); strncat (option_str, " ", 1); } + dict = dict_new (); if (!dict) goto out; -- cgit