From 953080e4fc271ad200736f3584f41e24dfe063ca Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 26 Nov 2012 11:14:36 +0100 Subject: [PATCH] thin: add more unsupporte options for merge Hmm, we need some smarter way to detect unsupported command line options for various commands. --- tools/lvconvert.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/lvconvert.c b/tools/lvconvert.c index 7a01ccef1..fc58add31 100644 --- a/tools/lvconvert.c +++ b/tools/lvconvert.c @@ -270,6 +270,8 @@ static int _read_params(struct lvconvert_params *lp, struct cmd_context *cmd, if (lp->merge) { /* Snapshot merge */ if (arg_count(cmd, regionsize_ARG) || arg_count(cmd, chunksize_ARG) || arg_count(cmd, zero_ARG) || arg_count(cmd, regionsize_ARG) || + arg_count(cmd, poolmetadata_ARG) || arg_count(cmd, poolmetadatasize_ARG) || + arg_count(cmd, readahead_ARG) || arg_count(cmd, stripes_long_ARG) || arg_count(cmd, stripesize_ARG)) { log_error("Only --background and --interval are valid " "arguments for snapshot merge");