From f6775423d7fbe71fe35e6154388e77aae2e264ad Mon Sep 17 00:00:00 2001 From: Atin Mukherjee Date: Fri, 15 Sep 2017 19:01:53 +0530 Subject: events : Add brick list in EVENT_VOLUME_CREATE Change-Id: Ibf87ae5ca57f9d27c036f329a30c8f81b51c52bf BUG: 1492109 Signed-off-by: Atin Mukherjee Reviewed-on: https://review.gluster.org/18306 Reviewed-by: Prashanth Pai Smoke: Gluster Build System Reviewed-by: Aravinda VK CentOS-regression: Gluster Build System --- cli/src/cli-cmd-volume.c | 7 +++++-- 1 file changed, 5 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 c22573e6408..a7e0fc7ed03 100644 --- a/cli/src/cli-cmd-volume.c +++ b/cli/src/cli-cmd-volume.c @@ -196,6 +196,7 @@ cli_cmd_volume_create_cbk (struct cli_state *state, struct cli_cmd_word *word, int parse_error = 0; cli_local_t *local = NULL; char *trans_type = NULL; + char *bricks = NULL; proc = &cli_rpc_prog->proctable[GLUSTER_CLI_CREATE_VOLUME]; @@ -203,7 +204,8 @@ cli_cmd_volume_create_cbk (struct cli_state *state, struct cli_cmd_word *word, if (!frame) goto out; - ret = cli_cmd_volume_create_parse (state, words, wordcount, &options); + ret = cli_cmd_volume_create_parse (state, words, wordcount, &options, + &bricks); if (ret) { cli_usage_out (word->pattern); @@ -241,7 +243,8 @@ out: CLI_STACK_DESTROY (frame); if (ret == 0) { - gf_event (EVENT_VOLUME_CREATE, "name=%s", (char *)words[2]); + gf_event (EVENT_VOLUME_CREATE, "name=%s;bricks=%s", + (char *)words[2], bricks); } return ret; } -- cgit