master - thin: add more unsupporte options for merge
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=953080e4fc271ad200736f3584f41e24dfe063ca Commit: 953080e4fc271ad200736f3584f41e24dfe063ca Parent: 683b1f0625a39084ed32ebce06a62d5a1fb4bf23 Author: Zdenek Kabelac <[email protected]> AuthorDate: Mon Nov 26 11:14:36 2012 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Mon Nov 26 12:15:32 2012 +0100
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 files changed, 2 insertions(+), 0 deletions(-)
tools/lvconvert.c +2 -0
@@ -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" );