From: Ian Jackson Subject: Re: [PATCH] xl: support empty CDROM devices Date: Wed, 25 Jul 2012 11:47:31 +0100 Message-ID: <20495.52931.287117.538691@mariner.uk.xensource.com> References: <576aeedaca777236db87.1343211308@cosworth.uk.xensource.com> <1343212345.18971.69.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1343212345.18971.69.camel@zakaz.uk.xensource.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: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [Xen-devel] [PATCH] xl: support empty CDROM devices"): > On Wed, 2012-07-25 at 11:15 +0100, Ian Campbell wrote: > > xend accepts ',hdc:cdrom,r'[0] as an empty CDROM drive however this is > > not consistent with the xl syntax in > > docs/misc/xl-disk-configuration.txt which > > requires ',,hdc:cdrom,r' (the additional positional paramter is the > > format). > > I'm not sure if/how this can be fixed. Note that xend does not accept > > ',,hdc:cdrom,r' > > This can be fixed with the following hack to the parser. Effectively it > says that when target is given as a positional parameter and is blank > then format is implicitly "empty" and must be omitted. I don't like this because it will live with us for evermore. We will never be able to get rid of the weird wrinkle in the positional syntax. Maybe it would be better to do something ad hoc. I have an idea which I will try to implement... Ian.