summaryrefslogtreecommitdiffstats
path: root/cli/src/cli-rpc-ops.c
diff options
context:
space:
mode:
authorVijaikumar M <vmallika@redhat.com>2014-03-04 13:02:52 +0530
committerRajesh Joseph <rjoseph@redhat.com>2014-03-06 01:31:23 -0800
commit40497ba922667abbc20dda635cb0ef0abe5f51eb (patch)
tree3755c4d52ff5ed4a6d6f0d1cff0dcd80cef52ba1 /cli/src/cli-rpc-ops.c
parentfabee8f75c56f18c949b79dcc751c2855b5c7514 (diff)
glusterd/snapshot: Snapshot create and delete changes
With the snap driven approach, While creating the snapshot, We have to mention the snap-name first and then the volumes to be associated with that. Corresponding changes has been made in glusterd. While deleting the snapshot, we have to mention only the snapname. Corresponding changes has been made in glusterd. CLI changes for the same can be found here: http://review.gluster.org/#/c/6947/ Change-Id: I8bd8f471da5b728165da5f331faad3dde3486823 Signed-off-by: Vijaikumar M <vmallika@redhat.com> Reviewed-on: http://review.gluster.org/7123 Reviewed-by: Avra Sengupta <asengupt@redhat.com> Reviewed-by: Rajesh Joseph <rjoseph@redhat.com> Tested-by: Rajesh Joseph <rjoseph@redhat.com>
Diffstat (limited to 'cli/src/cli-rpc-ops.c')
-rw-r--r--cli/src/cli-rpc-ops.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c
index b441e1083..ee26e7d76 100644
--- a/cli/src/cli-rpc-ops.c
+++ b/cli/src/cli-rpc-ops.c
@@ -7844,7 +7844,7 @@ cli_get_each_snap_info (dict_t *dict, char *prefix_str,
if (!snap_driven)
strcat (indent, "\t");
- ret = snprintf (key_buffer, sizeof (key_buffer), "%s.snap-name",
+ ret = snprintf (key_buffer, sizeof (key_buffer), "%s.snapname",
prefix_str);
if (ret < 0 ) {
goto out;
@@ -7852,7 +7852,7 @@ cli_get_each_snap_info (dict_t *dict, char *prefix_str,
ret = dict_get_str (dict, key_buffer, &get_buffer);
if (ret) {
- gf_log ("cli", GF_LOG_ERROR, "Unable to fetch snap-name %s ",
+ gf_log ("cli", GF_LOG_ERROR, "Unable to fetch snapname %s ",
key_buffer);
goto out;
}
@@ -8092,7 +8092,7 @@ gf_cli_snapshot_cbk (struct rpc_req *req, struct iovec *iov,
"group created successfully",
cg_name);
} else {
- if (dict_get_str (dict, "snap-name",
+ if (dict_get_str (dict, "snapname",
&snap_name) != 0)
snap_name = "???";