From 727a63c3a5f9cab5af6089826d81df2035e1c0b6 Mon Sep 17 00:00:00 2001 From: Rajesh Joseph Date: Fri, 13 Dec 2013 11:53:21 +0530 Subject: 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 --- cli/src/cli-rpc-ops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/src/cli-rpc-ops.c') 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"); -- cgit