From df0ff94a64bd597e61f26a2a56297de7abf80a0f Mon Sep 17 00:00:00 2001 From: vmallika Date: Tue, 28 Oct 2014 12:25:43 +0530 Subject: glusterd/snapshot: Snapshot should be deactivated when it is created. By default snapshot should be deactivated and this should be a configurable option. This behaviour can be configured by the command below: gluster snapshot config activate-on-create Change-Id: I1911595c32beed43bb2fca4bf99f0d264b422513 BUG: 1170921 Signed-off-by: vmallika Reviewed-on: http://review.gluster.org/8985 Tested-by: Gluster Build System Reviewed-by: Avra Sengupta Reviewed-by: Rajesh Joseph Reviewed-by: Kaushal M Signed-off-by: Sachin Pandit Reviewed-on: http://review.gluster.org/9241 Reviewed-by: Raghavendra Bhat --- cli/src/cli-cmd-snapshot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cli/src/cli-cmd-snapshot.c') diff --git a/cli/src/cli-cmd-snapshot.c b/cli/src/cli-cmd-snapshot.c index 07d04595b06..d03b5b99dd0 100644 --- a/cli/src/cli-cmd-snapshot.c +++ b/cli/src/cli-cmd-snapshot.c @@ -104,7 +104,8 @@ struct cli_cmd snapshot_cmds[] = { }, {"snapshot config [volname] ([snap-max-hard-limit ] " "[snap-max-soft-limit ]) " - "| ([auto-delete ])", + "| ([auto-delete ])" + "| ([activate-on-create ])", cli_cmd_snapshot_cbk, "Snapshot Config." }, -- cgit