From: Ian Jackson Subject: Re: [PATCH OSSTEST] ts-xen-build-prep: don't attempt to extend volume group by 0. Date: Wed, 23 Sep 2015 13:57:58 +0100 Message-ID: <22018.41430.151724.832212@mariner.uk.xensource.com> References: <1443005498-23202-1-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1443005498-23202-1-git-send-email-ian.campbell@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: Robert Ho , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("[PATCH OSSTEST] ts-xen-build-prep: don't attempt to extend volume group by 0."): > overall_limit_pe can set its argument to 0 if the VG is already as > large as it is allowed to be. > > In which case we would end up passing "-l +0" to lvextend, which it > complains about and then fails. > > Move the clamping of $vg_more_free_pe to outside the check for it > being 0. > > Based on a patch by Robert Ho. > > Signed-off-by: Ian Campbell > Cc: Robert Ho Acked-by: Ian Jackson (again, I think...)