From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13472 invoked by alias); 23 Apr 2009 16:45:34 -0000 Received: (qmail 13452 invoked by uid 9699); 23 Apr 2009 16:45:32 -0000 Date: Thu, 23 Apr 2009 16:45:00 -0000 Message-ID: <20090423164532.13450.qmail@sourceware.org> From: mornfall@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2/tools toollib.c Mailing-List: contact lvm2-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: lvm2-cvs-owner@sourceware.org X-SW-Source: 2009-04/txt/msg00039.txt.bz2 CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: mornfall@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 --- LVM2/tools/toollib.c 2009/04/21 12:59:19 1.150 +++ LVM2/tools/toollib.c 2009/04/23 16:45:30 1.151 @@ -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);