diff options
author | Rajesh Joseph <rjoseph@redhat.com> | 2013-12-13 11:53:21 +0530 |
---|---|---|
committer | Rajesh Joseph <rjoseph@redhat.com> | 2014-01-15 13:53:32 +0530 |
commit | 727a63c3a5f9cab5af6089826d81df2035e1c0b6 (patch) | |
tree | 25c37ce129a65ed5af8ec9b52272bd98916fa206 /cli/src/cli-rpc-ops.c | |
parent | 33c45ff71cb43eec7cdcee054a6a55b7c3aaa8fb (diff) |
Snapshot: Gluster snapshot restore feature
Implemented gluster snapshot restore feature. The restore is done
by replacing the origin volume with the snap volume.
TODO: After the restore the snapshot volume should be deleted. As of
now the deletion work is pending.
Change-Id: Ib137fb6bb84a74030607ffa47f89cd705dc7e1ff
Signed-off-by: Rajesh Joseph <rjoseph@redhat.com>
Diffstat (limited to 'cli/src/cli-rpc-ops.c')
-rw-r--r-- | cli/src/cli-rpc-ops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c index 6ee039fbc..90fb8e4b9 100644 --- a/cli/src/cli-rpc-ops.c +++ b/cli/src/cli-rpc-ops.c @@ -8117,9 +8117,9 @@ gf_cli_snapshot_cbk (struct rpc_req *req, struct iovec *iov, goto out; } - ret = dict_get_str (dict, "cg-name", &cg_name); + ret = dict_get_str (dict, "cgname", &cg_name); if (ret) { - ret = dict_get_str (dict, "snap-name", &snap_name); + ret = dict_get_str (dict, "snapname", &snap_name); if (ret) { gf_log (frame->this->name, GF_LOG_ERROR, "Failed to get CG name or snap name"); |