From 1b361b51a1a6766a80de5265832145c413c32a49 Mon Sep 17 00:00:00 2001 From: Rajesh Joseph Date: Wed, 30 Oct 2013 10:50:45 +0530 Subject: snapshot: Snapshot restore GL-31: Ability to restore snapshot Implemented snapshot restore for thin logical volume. As of now snapshot restore for CG is not tested. Testing for snapshot restore of a volume is done by changing the snapshot create process to create a thick snapshot. This is done because --merge option to restore thin volume is not working in the latest kernel. Change-Id: Ia3ded7e6c4da5957a74e269a25ba3200e6fb2d8b Signed-off-by: Rajesh Joseph --- cli/src/cli-cmd-snapshot.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (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 6c2b3d5e5..9f52ab01b 100644 --- a/cli/src/cli-cmd-snapshot.c +++ b/cli/src/cli-cmd-snapshot.c @@ -77,11 +77,15 @@ struct cli_cmd snapshot_cmds[] = { cli_cmd_snapshot_help_cbk, "display help for snapshot commands" }, - {"snapshot create [-n ] [-d ]", + { "snapshot create [-n ] [-d ]", cli_cmd_snapshot_cbk, "Snapshot Create." }, - {"snapshot list [ | [-s ]" + { "snapshot restore (-v | -c )", + cli_cmd_snapshot_cbk, + "Snapshot Restore." + }, + { "snapshot list [ | [-s ]" " | -c ] [-d]", cli_cmd_snapshot_cbk, "Snapshot List." -- cgit