From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [OSSTEST PATCH 02/10] Flight restriction: Introduce restrictflight_arg and restrictflight_cond Date: Fri, 24 Jul 2015 10:21:17 +0100 Message-ID: <1437729677.24746.45.camel@citrix.com> References: <1437675564-16602-1-git-send-email-ian.jackson@eu.citrix.com> <1437675564-16602-3-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZIZAR-0002rX-0m for xen-devel@lists.xenproject.org; Fri, 24 Jul 2015 09:21:23 +0000 In-Reply-To: <1437675564-16602-3-git-send-email-ian.jackson@eu.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 Jackson , xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org On Thu, 2015-07-23 at 19:19 +0100, Ian Jackson wrote: > Provide the new functions which we will eventually use everywhere. > > * Introduce restrictflight_arg which can be used in an argument loop. > * Introduce restrictflight_cond which generates a SQL condition. > * Have restrictflight_cond's value include surrounding ( ) for > safety. > * Use the above in sg-report-host-history, renaming $maxflightcond. > > No overall functional change. > > Signed-off-by: Ian Jackson Acked-by: Ian Campbell