]> sourceware.org Git - lvm2.git/commitdiff
lvconvert: Fix repair and replace routing.
authorAlasdair G Kergon <agk@redhat.com>
Mon, 8 Aug 2016 22:13:34 +0000 (23:13 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Mon, 8 Aug 2016 22:13:34 +0000 (23:13 +0100)
tools/lvconvert.c

index 7c014e0eef465efc2ff7424f15938bc51df53265..72b4931237bcd2c99a35510fc99b3e3fba70c0a9 100644 (file)
@@ -1919,7 +1919,7 @@ static int _lvconvert_raid(struct logical_volume *lv, struct lvconvert_params *l
                        return 1;
                }
                goto try_new_takeover_or_reshape;
-       } else if (!*lp->type_str || seg->segtype == lp->segtype) {
+       } else if (!lp->repair && !lp->replace && (!*lp->type_str || seg->segtype == lp->segtype)) {
                log_error("Conversion operation not yet supported.");
                return 0;
        }
This page took 0.045805 seconds and 5 git commands to generate.