LVM2 ./WHATS_NEW tools/toollib.c

agk@sourceware.org agk@sourceware.org
Wed Jun 14 20:27:00 GMT 2006


CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	agk@sourceware.org	2006-06-14 20:27:15

Modified files:
	.              : WHATS_NEW 
	tools          : toollib.c 

Log message:
	Fix return code if VG specified on command line is not found.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.403&r2=1.404
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/toollib.c.diff?cvsroot=lvm2&r1=1.83&r2=1.84

--- LVM2/WHATS_NEW	2006/06/14 20:11:22	1.403
+++ LVM2/WHATS_NEW	2006/06/14 20:27:15	1.404
@@ -1,5 +1,6 @@
 Version 2.02.07 - 
 =================================
+  Fix return code if VG specified on command line is not found.
   Fix PV tools to include orphaned PVs in default output again.
   Fixed unaligned access when using clvm.
   Fix an extra dev_close in a label_read error path.
--- LVM2/tools/toollib.c	2006/05/11 18:39:24	1.83
+++ LVM2/tools/toollib.c	2006/06/14 20:27:15	1.84
@@ -413,7 +413,7 @@
 	if (!(vg = vg_read(cmd, vg_name, vgid, &consistent))) {
 		log_error("Volume group \"%s\" not found", vg_name);
 		unlock_vg(cmd, vg_name);
-		return ret_max;
+		return ECMD_FAILED;
 	}
 
 	if (!list_empty(tags)) {



More information about the Lvm2-cvs mailing list