diff options
author | Gaurav Kumar Garg <ggarg@redhat.com> | 2015-04-09 15:36:20 +0530 |
---|---|---|
committer | Kaushal M <kaushal@redhat.com> | 2015-05-04 01:56:58 -0700 |
commit | da1416051d19d612d131acfde8589bc8658979b5 (patch) | |
tree | e4ffdeba3420fa794a5a4a2543955a25af2c2559 /cli/src/cli-cmd-parser.c | |
parent | 7759748915485d6c740a7fed831376f298eb90bb (diff) |
glusterd: gluster volume status should show status of bitrot and scrubber daemon
Command gluster volume status <VOLNAME> should show the status of bitrot
and scrubber daemon and its pid information.
Along with displaying bitrot and scrubber daemon information in gluster
volume status command there should be command to show its individual status
separately.
Command to show individual status of bitrot and scrubber daemon will
following.
command to show only bitd daemon information will be
gluster volume status <VOLNAME> bitd
command to show only scrubber daemon information
gluster volume status <VOLNAME> scrub
Change-Id: Id86aae1156c8c599347c98e2a538f294d37376e4
BUG: 1209752
Signed-off-by: Gaurav Kumar Garg <ggarg@redhat.com>
Reviewed-on: http://review.gluster.org/10175
Reviewed-by: Kaushal M <kaushal@redhat.com>
Tested-by: Kaushal M <kaushal@redhat.com>
Diffstat (limited to 'cli/src/cli-cmd-parser.c')
-rw-r--r-- | cli/src/cli-cmd-parser.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c index e43a0c6e0ec..592df914d1b 100644 --- a/cli/src/cli-cmd-parser.c +++ b/cli/src/cli-cmd-parser.c @@ -2940,6 +2940,10 @@ cli_cmd_volume_status_parse (const char **words, int wordcount, cmd |= GF_CLI_STATUS_QUOTAD; } else if (!strcmp (words[3], "snapd")) { cmd |= GF_CLI_STATUS_SNAPD; + } else if (!strcmp (words[3], "bitd")) { + cmd |= GF_CLI_STATUS_BITD; + } else if (!strcmp (words[3], "scrub")) { + cmd |= GF_CLI_STATUS_SCRUB; } else { cmd = GF_CLI_STATUS_BRICK; ret = dict_set_str (dict, "brick", |