diff options
author | Alasdair G Kergon <agk@redhat.com> | 2016-08-08 23:13:34 +0100 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2016-08-08 23:13:34 +0100 |
commit | e5a5fd3669914337f85fc5c12e867680eb3f58a9 (patch) | |
tree | ef79d0db5a0821a89bc5687b1721216a1c5e2aaf | |
parent | dad02900f18d3ef9b85d78f2e42434d92e6d84c9 (diff) | |
download | lvm2-e5a5fd3669914337f85fc5c12e867680eb3f58a9.tar.gz |
lvconvert: Fix repair and replace routing.
-rw-r--r-- | tools/lvconvert.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lvconvert.c b/tools/lvconvert.c index 7c014e0ee..72b493123 100644 --- a/tools/lvconvert.c +++ b/tools/lvconvert.c @@ -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; } |