Skip to contentSkip to conversation

master - lvconvert: Fix repair and replace routing.

PATCH Alasdair Kergon 1 participant 1 message Aug 8, 2016

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=e5a5fd3669914337f85fc5c12e867680eb3f58a9
Commit:        e5a5fd3669914337f85fc5c12e867680eb3f58a9
Parent:        dad02900f18d3ef9b85d78f2e42434d92e6d84c9
Author:        Alasdair G Kergon <[email protected]>
AuthorDate:    Mon Aug 8 23:13:34 2016 +0100
Committer:     Alasdair G Kergon <[email protected]>
CommitterDate: Mon Aug 8 23:13:34 2016 +0100

lvconvert: Fix repair and replace routing.

---
 tools/lvconvert.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
tools/lvconvert.c +1 -1
index 7c014e0..72b4931 100644
@@ -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;
 	}