[lvm-devel] master - lvconvert: Fix repair and replace routing.
Alasdair Kergon
agk at fedoraproject.org
Mon Aug 8 22:14:08 UTC 2016
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=e5a5fd3669914337f85fc5c12e867680eb3f58a9
Commit: e5a5fd3669914337f85fc5c12e867680eb3f58a9
Parent: dad02900f18d3ef9b85d78f2e42434d92e6d84c9
Author: Alasdair G Kergon <agk at redhat.com>
AuthorDate: Mon Aug 8 23:13:34 2016 +0100
Committer: Alasdair G Kergon <agk at redhat.com>
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(-)
diff --git a/tools/lvconvert.c b/tools/lvconvert.c
index 7c014e0..72b4931 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;
}
More information about the lvm-devel
mailing list