From: Ian Campbell Subject: Re: xl block-attach Date: Mon, 31 Jan 2011 17:03:41 +0000 Message-ID: <1296493421.4037.74.camel@zakaz.uk.xensource.com> References: <4D45C257.3060702@gmail.com> <1296485964.4037.65.camel@zakaz.uk.xensource.com> <4D46D0E9.8030605@gmail.com> <1296487379.4037.67.camel@zakaz.uk.xensource.com> <4D46E742.7070606@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4D46E742.7070606@gmail.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: Kamala Narasimhan Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Mon, 2011-01-31 at 16:45 +0000, Kamala Narasimhan wrote: > From the above it is not very evident what is acceptable for BackDev > and FrontDev. So I looked at the code that parses these input (in > xl). It takes backdev and looks for pdev type ('phy' or 'file' or > 'tap') and if tap, looks for 'aio' or 'vhd' or 'qcow' or 'qcow2' (here > it is mixing format with backend impl type) followed by pdev path. > It then takes frontdev and interprets it to be vdev path and then it > interprets mode to be read or write attribute. Possible implementation bugs and lack of code reuse aside it sounds as if the intention was to support the same stuff as the configuration file. > We could still keep the higher level arguments as is but our parser > could interpret BackDev and FrontDev values the way it does for config > file option. That sounds sensible to me. Ian.