summaryrefslogtreecommitdiffstats
path: root/cli/src/cli-cmd-snapshot.c
diff options
context:
space:
mode:
authorSachin Pandit <spandit@redhat.com>2013-10-15 15:41:56 +0530
committershishir gowda <sgowda@redhat.com>2013-11-15 12:38:59 +0530
commitda3a265c36b1326405dafce98b29d7c72001a7e9 (patch)
tree6b1cd92cd5d3ec24b499d1f4140be7af26e50f77 /cli/src/cli-cmd-snapshot.c
parentb1e9fab5de8ab45987b2eed9bfd12a1eb188707b (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.c10
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 }
};