From: Ian Campbell Subject: Re: Recent xl and network-route scripts Date: Tue, 15 Mar 2011 19:25:08 +0000 Message-ID: <1300217108.32696.54.camel@localhost.localdomain> References: <20110217011331.GA3090@imp.local> <20110217072944.GA5345@reaktio.net> <1297934374.16356.1364.camel@zakaz.uk.xensource.com> <1297937409.16356.1441.camel@zakaz.uk.xensource.com> <19806.37126.458191.518046@mariner.uk.xensource.com> <20110313185342.GA2710@imp.local> <1300095333.17339.2081.camel@zakaz.uk.xensource.com> <19839.44019.959627.318484@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <19839.44019.959627.318484@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Jackson Cc: Todd Deshane , "xen-devel@lists.xensource.com" , "W. Michael Petullo" List-Id: xen-devel@lists.xenproject.org On Tue, 2011-03-15 at 18:12 +0000, Ian Jackson wrote: > Ian Campbell writes ("Re: [Xen-devel] Recent xl and network-route scripts"): > > On Sun, 2011-03-13 at 18:53 +0000, W. Michael Petullo wrote: > > > The former pattern is what "vif-setup" needs. > > > > Thanks, I sent out a patch last week "libxl: use full path to vif > > hotplug script script" which addresses this discrepancy. > > I think we should _allow_ the user to specify the complete path to a > script, but not require them to. Your existing patch 1/2 doesn't do > that. It's over and above whatr xend supports but I agree it's a good idea. > How about something like: > > - flexarray_append(back, nic->script); > + flexarray_append(back, nic->script[0]=='/' ? nic->script : > + libxl__sprintf(&gc, "%s/%s", libxl_xen_script_dir_path(), nic->script)); Assuming there's an "if (nic-script)" above this context I think makes sense. Ian