Skip to contentSkip to conversation

LVM2/tools toollib.c

PATCH [email protected] 2 participants 2 messages Apr 23, 2009 – Apr 24, 2009

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: mornfall at sourceware.org 2009-04-23 16:45:31

Modified files:
tools : toollib.c

Log message:
Refuse adding missing PVs in create_pv_list in toollib when allocatable_only is requested.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/toollib.c.diff?cvsroot=lvm2&r1=1.150&r2=1.151

tools/toollib.c +5 -0
@@ -1047,6 +1047,11 @@
 		return 1;
 	}
 
+	if (allocatable_only && (pvl->pv->status & MISSING_PV)) {
+		log_error("Physical volume %s is missing", pvname);
+		return 1;
+	}
+
 	if (allocatable_only &&
 	    (pvl->pv->pe_count == pvl->pv->pe_alloc_count)) {
 		log_err("No free extents on physical volume \"%s\"", pvname);
#1 lore raw
Quoted 2 lines · mornfall at sourceware.org

Refuse adding missing PVs in create_pv_list in toollib when allocatable_only is requested.

Ack.

WHATS_NEW?

Alasdair

Signature · 1 line
agk at redhat.com