[lvm-devel] LVM2/tools pvremove.c

agk at sourceware.org agk at sourceware.org
Fri Mar 2 02:55:46 UTC 2012


CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	agk at sourceware.org	2012-03-02 02:55:45

Modified files:
	tools          : pvremove.c 

Log message:
	Reinstate error if e.g. daemon comms fails.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/pvremove.c.diff?cvsroot=lvm2&r1=1.39&r2=1.40

--- LVM2/tools/pvremove.c	2012/03/01 21:46:31	1.39
+++ LVM2/tools/pvremove.c	2012/03/02 02:55:45	1.40
@@ -128,8 +128,9 @@
 		goto out;
 	}
 
+	/* FIXME Avoid error if we expect that daemon might not know device */
 	if (!lvmetad_pv_gone(dev->dev))
-		log_debug("PV gone"); /* FIXME any better idea */
+		goto_out;
 
 	log_print("Labels on physical volume \"%s\" successfully wiped",
 		  pv_name);




More information about the lvm-devel mailing list