[sheepdog] [PATCH] collie: add terminator for cluster snapshot
Liu Yuan
namei.unix at gmail.com
Fri May 24 16:54:38 CEST 2013
Or we'll have following wrong output
yliu at K55VM-ubuntu:~/sheepdog$ collie/collie cluster snapshot
Usage: collie cluster snapshot {save|list|load|force|enable|disable} [-a address] [-p port] [-h] <tag|idx> <path>
Available subcommands:
save save snapshot to localpath
list list snapshot of localpath
load list snapshot of localpath
force force recover cluster immediately
enable enable automatic recovery and run once recover if necessary
disable disable automatic recovery
Options:
-a, --address specify the daemon address (default: localhost)
-p, --port specify the daemon port
-h, --help display this help and exit
Signed-off-by: Liu Yuan <namei.unix at gmail.com>
---
collie/cluster.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/collie/cluster.c b/collie/cluster.c
index 04d1587..97feade 100644
--- a/collie/cluster.c
+++ b/collie/cluster.c
@@ -448,7 +448,8 @@ static struct subcommand cluster_snapshot_cmd[] = {
{"list", NULL, "h", "list snapshot of localpath",
NULL, SUBCMD_FLAG_NEED_ARG, list_snapshot, NULL},
{"load", NULL, "h", "list snapshot of localpath",
- NULL, SUBCMD_FLAG_NEED_ARG, load_snapshot, NULL}
+ NULL, SUBCMD_FLAG_NEED_ARG, load_snapshot, NULL},
+ {NULL},
};
static int cluster_snapshot(int argc, char **argv)
--
1.7.9.5
More information about the sheepdog
mailing list