public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
* LVM2 tools/vgreduce.c ./WHATS_NEW
@ 2007-01-09 23:14 agk
  0 siblings, 0 replies; only message in thread
From: agk @ 2007-01-09 23:14 UTC (permalink / raw)
  To: lvm-devel, lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	agk@sourceware.org	2007-01-09 23:14:35

Modified files:
	tools          : vgreduce.c 
	.              : WHATS_NEW 

Log message:
	Avoid vgreduce error when mirror code removes the log LV.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/vgreduce.c.diff?cvsroot=lvm2&r1=1.54&r2=1.55
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.530&r2=1.531

--- LVM2/tools/vgreduce.c	2006/11/30 23:11:42	1.54
+++ LVM2/tools/vgreduce.c	2007/01/09 23:14:34	1.55
@@ -347,7 +347,9 @@
 		list_iterate_items(lvl, &lvs_changed) {
 			log_verbose("Removing LV %s from VG %s", lvl->lv->name,
 				    lvl->lv->vg->name);
-			if (!lv_remove(lvl->lv)) {
+				/* Skip LVs already removed by mirror code */
+				if (find_lv_in_vg(vg, lvl->lv->name) &&
+				    !lv_remove(lvl->lv)) {
 				stack;
 				return 0;
 			}
--- LVM2/WHATS_NEW	2007/01/09 22:07:20	1.530
+++ LVM2/WHATS_NEW	2007/01/09 23:14:35	1.531
@@ -1,5 +1,6 @@
 Version 2.02.18 -
 ====================================
+  Avoid vgreduce error when mirror code removes the log LV.
   Remove 3 redundant AC_MSG_RESULTs from configure.in.
   Free memory in _raw_read_mda_header() error paths.
   Fix ambiguous vgsplit error message for split LV.


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

only message in thread, other threads:[~2007-01-09 23:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-09 23:14 LVM2 tools/vgreduce.c ./WHATS_NEW agk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).