summaryrefslogtreecommitdiffstats
path: root/cli/src/cli-cmd-volume.c
diff options
context:
space:
mode:
authorRinku Kothiya <rkothiya@redhat.com>2019-01-21 11:16:09 +0000
committerAtin Mukherjee <amukherj@redhat.com>2019-02-04 12:56:00 +0000
commitf87a3e840306052a120529ea5a190240179078c1 (patch)
tree8a1b2d170a1281ed6aa48b1d13a76e5fda3ed9c2 /cli/src/cli-cmd-volume.c
parentec05f3a21f44e1fd5e089b7a0fffd5265b67cdfc (diff)
cli: Added the group option for volume set
gluster volume set <VOLUME> group <GROUP> is used for setting multiple pre-defined volume options, but this was undocumented. This patch doc- ments this feature. fixes: bz#1243991 Change-Id: Id346cf2537f85179caff32479f09555ce2e72e76 Signed-off-by: Rinku Kothiya <rkothiya@redhat.com>
Diffstat (limited to 'cli/src/cli-cmd-volume.c')
-rw-r--r--cli/src/cli-cmd-volume.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/cli/src/cli-cmd-volume.c b/cli/src/cli-cmd-volume.c
index 81e49dc5238..3432dbebd8b 100644
--- a/cli/src/cli-cmd-volume.c
+++ b/cli/src/cli-cmd-volume.c
@@ -3403,6 +3403,11 @@ struct cli_cmd volume_cmds[] = {
{"volume set <VOLNAME> <KEY> <VALUE>", cli_cmd_volume_set_cbk,
"set options for volume <VOLNAME>"},
+ {"volume set <VOLNAME> group <GROUP>", cli_cmd_volume_set_cbk,
+ "This option can be used for setting multiple pre-defined volume options"
+ "where group_name is a file under /var/lib/glusterd/groups containing one"
+ "key, value pair per line"},
+
{"volume log <VOLNAME> rotate [BRICK]", cli_cmd_log_rotate_cbk,
"rotate the log file for corresponding volume/brick"},