All of lore.kernel.org
 help / color / mirror / Atom feed
* LVM2/tools vgck.c vgremove.c
@ 2009-07-14 19:37 wysochanski
  0 siblings, 0 replies; only message in thread
From: wysochanski @ 2009-07-14 19:37 UTC (permalink / raw)
  To: lvm-devel

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	wysochanski at sourceware.org	2009-07-14 19:37:18

Modified files:
	tools          : vgck.c vgremove.c 

Log message:
	Fix vgck and vgremove segfault if non-existent vg given.
	
	Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/vgck.c.diff?cvsroot=lvm2&r1=1.22&r2=1.23
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/vgremove.c.diff?cvsroot=lvm2&r1=1.53&r2=1.54

--- LVM2/tools/vgck.c	2009/07/01 17:00:52	1.22
+++ LVM2/tools/vgck.c	2009/07/14 19:37:18	1.23
@@ -21,6 +21,9 @@
 		       struct volume_group *vg,
 		       void *handle __attribute((unused)))
 {
+	if (vg_read_error(vg))
+		return ECMD_FAILED;
+
 	if (!vg_check_status(vg, EXPORTED_VG))
 		return ECMD_FAILED;
 
--- LVM2/tools/vgremove.c	2009/07/10 20:08:38	1.53
+++ LVM2/tools/vgremove.c	2009/07/14 19:37:18	1.54
@@ -22,6 +22,9 @@
 	unsigned lv_count;
 	force_t force;
 
+	if (vg_read_error(vg))
+		return ECMD_FAILED;
+
 	if (!vg_check_status(vg, EXPORTED_VG))
 		return ECMD_FAILED;
 



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-07-14 19:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-14 19:37 LVM2/tools vgck.c vgremove.c wysochanski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.