Received: from eggs.gnu.org ([2001:4830:134:3::10]:56406) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WlGQf-00080D-SL for qemu-devel@nongnu.org; Fri, 16 May 2014 07:36:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WlGQZ-0007el-NV for qemu-devel@nongnu.org; Fri, 16 May 2014 07:35:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:8877) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WlGQZ-0007ef-ES for qemu-devel@nongnu.org; Fri, 16 May 2014 07:35:51 -0400 Date: Fri, 16 May 2014 07:35:46 -0400 From: Jeff Cody Message-ID: <20140516113546.GB11553@localhost.localdomain> References: <5374E445.9070609@redhat.com> <20140515184103.GM8452@localhost.localdomain> <20140516093927.GC4508@noname.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140516093927.GC4508@noname.redhat.com> Subject: Re: [Qemu-devel] [PATCH 1/5] block: Auto-generate node_names for each BDS entry List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: benoit.canet@irqsave.net, pkrempa@redhat.com, famz@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com On Fri, May 16, 2014 at 11:39:27AM +0200, Kevin Wolf wrote: > Am 15.05.2014 um 20:41 hat Jeff Cody geschrieben: > > The only thing I don't like about moving this further back in the > > patch series is it makes the earlier patches untestable; I can't > > easily test the usage of the node-names for various intermediate BDS > > because they don't have node-names set. So that means I'll just need > > to rebase the patches prior to sending. > > I don't quite follow. Can't you always manually assign node-names? This > is how libvirt is supposed to use the interface. > How does libvirt assign node-names to all the backing images in a qcow2 chain, for example? > I'm not totally sure whether automatically generated node-names are > a good idea, but I can see how they are useful with human monitor users > which may not specify a node-name everywhere (I've used device_add > without an ID often enough, only to find that I can't remove the device > any more). We should just make sure that they are really only used by > human users. > I don't understand. What would be the downsides of having an automatic guaranteed unique id assigned to each BDS? And why restrict that to human users only? If you are worried about node-names potentially being undesired by the user / management layer for some reason, how about this: we add a drive option, to either enable or disable automatic node-name generation for a particular drive?