Skip to contentSkip to conversation

LVM2 ./WHATS_NEW tools/lvresize.c

PATCH [email protected] 1 participant 1 message Apr 1, 2008

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: wysochanski at sourceware.org 2008-04-01 22:15:16

Modified files:
. : WHATS_NEW
tools : lvresize.c

Log message:
Fix redundant lvresize message if vg doesn't exist.

BEFORE:
tools/lvm lvresize -l +4 vg22/lv1linear
Volume group "vg22" not found
Volume group vg22 doesn't exist

AFTER:
tools/lvm lvresize -l +4 vg22/lv1linear
Volume group "vg22" not found

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.813&r2=1.814
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvresize.c.diff?cvsroot=lvm2&r1=1.93&r2=1.94

WHATS_NEW +1 -0
@@ -1,5 +1,6 @@
 Version 2.02.34 -
 ===================================
+  Fix redundant lvresize message if vg doesn't exist.
   Fix another allocation bug with clvmd and large node IDs.
   Add find_lv_in_lv_list() and find_pv_in_pv_list().
   Fix uninitialised variable in clvmd that could cause odd hangs.
tools/lvresize.c +1 -3
@@ -654,10 +654,8 @@
 	log_verbose("Finding volume group %s", lp.vg_name);
 	if (!(vg = vg_lock_and_read(cmd, lp.vg_name, NULL, LCK_VG_WRITE,
 				    CLUSTERED | EXPORTED_VG | LVM_WRITE,
-				    CORRECT_INCONSISTENT))) {
-		log_error("Volume group %s doesn't exist", lp.vg_name);
+				    CORRECT_INCONSISTENT)))
 		return ECMD_FAILED;
-	}
 
 	if (!(r = _lvresize(cmd, vg, &lp)))
 		stack;