]> sourceware.org Git - lvm2.git/commitdiff
lvconvert: also allow --type with --stripes
authorPeter Rajnoha <prajnoha@redhat.com>
Thu, 13 Dec 2012 10:15:37 +0000 (11:15 +0100)
committerPeter Rajnoha <prajnoha@redhat.com>
Thu, 13 Dec 2012 10:19:11 +0000 (11:19 +0100)
We can also use this for conversion between different mirror segment
types. Each new segment type converter then needs to check itself
whether the --stripes is applicable.

tools/lvconvert.c

index 9c947d7fdf0e9de3b9253d681665266bfd4db1c2..fa3b1ecf333b944b7cfb50a0049f443e3e6d0d2f 100644 (file)
@@ -169,9 +169,9 @@ static int _read_params(struct lvconvert_params *lp, struct cmd_context *cmd,
 
        if ((arg_count(cmd, stripes_long_ARG) || arg_count(cmd, stripesize_ARG)) &&
            !(arg_count(cmd, mirrors_ARG) || arg_count(cmd, repair_ARG) ||
-             arg_count(cmd, thinpool_ARG))) {
+             arg_count(cmd, thinpool_ARG) || arg_count(cmd, type_ARG))) {
                log_error("--stripes or --stripesize argument is only valid "
-                         "with --mirrors, --repair or --thinpool");
+                         "with --mirrors, --repair, --thinpool or --type");
                return 0;
        }
 
This page took 0.04122 seconds and 5 git commands to generate.