diff options
author | Sachin Pandit <spandit@redhat.com> | 2013-10-15 15:41:56 +0530 |
---|---|---|
committer | Sachin Pandit <spandit@redhat.com> | 2013-10-22 19:15:25 +0530 |
commit | 9a00042b00e06f547fe59fa9234bbf1d047f1771 (patch) | |
tree | 34313b76ee2f7e62ee221b8d6021aae387ba4e4c /cli/src/cli-cmd-snapshot.c | |
parent | 79eef878d11a23f8a6a7881b6f997e051a42ebfd (diff) |
CLI : snapshot list cli interface
$gluster snapshot list
*prints snaps of all volume*
$gluster snapshot list -d
*prints snaps of all volume with details*
$gluster snapshot list vol1
*prints snaps of volume "vol1"*
$gluster snapshot list vol1 -d
*prints snaps of volume "vol1" with details*
$gluster snapshot list vol1 vol2
*prints snaps of volume "vol1" & "vol2"
$gluster snapshot list vol1 vol2 -d
*prints snaps of volume "vol1" & "vol2" with details*
$gluster snapshot list -c cgname
*prints snaps of all volume present in the group "cgname"*
$gluster snapshot list -c cgname -d
*prints snaps of all volume present in the group "cgname" with details*
** As of now you wont be able to see any output as actual snap create is not integrated **
Change-Id: I60eeafc715a51f1c564a270bb4124368038012b1
Signed-off-by: Sachin Pandit <spandit@redhat.com>
Diffstat (limited to 'cli/src/cli-cmd-snapshot.c')
-rw-r--r-- | cli/src/cli-cmd-snapshot.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/cli/src/cli-cmd-snapshot.c b/cli/src/cli-cmd-snapshot.c index cc1fb3c90..afe8bf901 100644 --- a/cli/src/cli-cmd-snapshot.c +++ b/cli/src/cli-cmd-snapshot.c @@ -75,13 +75,17 @@ out: struct cli_cmd snapshot_cmds[] = { { "snapshot help", cli_cmd_snapshot_help_cbk, - "display help for snapshot commands"}, - + "display help for snapshot commands" + }, {"snapshot create <volnames> [-n <snap-name/cg-name>] [-d <description>]", cli_cmd_snapshot_cbk, "Snapshot Create." }, - + {"snapshot list [<volnames> | <volname> [-s <snapname>]" + " | -c <cgname> ] [-d]", + cli_cmd_snapshot_cbk, + "Snapshot List." + }, { NULL, NULL, NULL } }; |