Skip to contentSkip to conversation

master - lvresize: vdo support

PATCH Zdenek Kabelac 1 participant 1 message Jul 9, 2018

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=6945bbdbc6f997568707594b4b930f3551893910
Commit:        6945bbdbc6f997568707594b4b930f3551893910
Parent:        96e9929f2f2d23d2113920efd67431d0272aba5f
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Mon Jul 2 10:54:56 2018 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon Jul 9 15:28:35 2018 +0200

lvresize: vdo support

Unsupported ATM.

Wait till VDO kernel target starts to use updated resize sequence, LOAD, SUSPEND, RESUME.

---
 lib/metadata/lv_manip.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
lib/metadata/lv_manip.c +6 -0
index d3c4e76..43e09a4 100644
@@ -4893,6 +4893,12 @@ static int _lvresize_check(struct logical_volume *lv,
 		return 0;
 	}
 
+	if (lv_is_vdo_type(lv)) {
+		log_error("Resize of VDO type volume %s is not yet supported.",
+			  display_lvname(lv));
+		return 0;
+	}
+
 	if (lv_is_raid(lv) &&
 	    lp->resize == LV_REDUCE) {
 		unsigned attrs;