Skip to contentSkip to conversation

Fix misleading vgsplit error message

PATCH New Dave Wysochanski 1 participant 1 message Jan 8, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix misleading vgsplit error message

Error message for failed vgsplit seems to imply that it actually worked.
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=202864

tools/vgsplit.c +2 -2
Index: LVM2/tools/vgsplit.c
===================================================================
@@ -84,8 +84,8 @@ static int _move_lvs(struct volume_group
 				pv = seg_pv(seg, s);
 				if (vg_with) {
 					if (!pv_is_in_vg(vg_with, pv)) {
-						log_error("Logical Volume %s "
-							  "split between "
+						log_error("Can't split Logical "
+							  "Volume %s between 2 "
 							  "Volume Groups",
 							  lv->name);
 						return 0;
WHATS_NEW +1 -0
Index: LVM2/WHATS_NEW
===================================================================
@@ -1,5 +1,6 @@
 Version 2.02.18 -
 ====================================
+  Fix misleading vgsplit error message when LV is part of PV not on cmdline.
   Add dmeventd_mirror register_mutex, tidy initialisation & add memlock.
   Fix create mirror with name longer than 22 chars.
   Fix some activate.c prototypes when compiled without devmapper.