Received: from eggs.gnu.org ([2001:4830:134:3::10]:51789) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTXmh-0005I3-Qs for qemu-devel@nongnu.org; Mon, 15 Sep 2014 11:01:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XTXmb-0007As-Mx for qemu-devel@nongnu.org; Mon, 15 Sep 2014 11:01:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:23870) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTXmb-0007Ai-EC for qemu-devel@nongnu.org; Mon, 15 Sep 2014 11:01:37 -0400 Date: Mon, 15 Sep 2014 16:01:31 +0100 From: Stefan Hajnoczi Message-ID: <20140915150131.GB8512@stefanha-thinkpad.lan> References: <8738bvv4dm.fsf@blackfin.pond.sub.org> <20140915013158.GA2639@fam-t430.nay.redhat.com> <20140915085901.GA5236@noname.str.redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zx4FCpZtqtKETZ7O" Content-Disposition: inline In-Reply-To: <20140915085901.GA5236@noname.str.redhat.com> Subject: Re: [Qemu-devel] BB name vs. BDS name in the QAPI schema List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: Fam Zheng , qemu-devel@nongnu.org, Markus Armbruster , Luiz Capitulino , =?iso-8859-1?Q?Beno=EEt?= Canet --zx4FCpZtqtKETZ7O Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 15, 2014 at 10:59:01AM +0200, Kevin Wolf wrote: > Am 15.09.2014 um 03:31 hat Fam Zheng geschrieben: > > On Sat, 09/13 19:04, Markus Armbruster wrote: > > I remember at the time of introducing node-name, it was in a separate > > namespace, but now it's not. Then why should the user care *whether* a = name is > > "device" or "node-name"? >=20 > When you reconfigure the graph (e.g. by taking a live snapshot), the BB > name always stays at the root (i.e. points to the new BDS), whereas the > node-name always stays at the same node (which was at the root, but > isn't any more), that's probably important for the user. Maybe a bit > like branches and tags in git. >=20 > So yes, they are somewhat different, but in the end they all resolve to > a BDS and it makes sense to allow accessing them in a uniform way (just > like 'git show ' works the same as 'git show '). >=20 > Which leads me to this conclusion: One mandatory string argument per > command is enough, and also results in a cleaner interface than having > two optional arguments that aren't truly optional because you need to > specify the one xor the other. I have slightly different taste - preferring to keep things explicit instead of implicit - but I don't think the choice matters a great deal. After all, we need to keep existing commands working (and Markus has enumerated the combinations) so we cannot do anything radical. If we use a single argument for new commands, it should be named appropriately ("blockref"?) to indicate that it is not limited to just BB or just BDS. Stefan --zx4FCpZtqtKETZ7O Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJUFv9LAAoJEJykq7OBq3PI6hYH/RTpPzeJofac3GCq79ZiNsBZ ZxQ3lkoDX3h5Z6bx1X2sMr9DD7qvUKgxtVvKwE6g+f5t1Z6f/rYVfFodIr6xdsXX +GVl8TeuCZT3yTQneOeWI9BPo6ajgFdZSmMkT8Hh12EZAxMwVgNYZlCcQsYMALZ0 sq5j0LSS9onUMWEnbDnQTOyIY99v/cisCFzHDd3fx+BdRQzDvSqTxHpA+72t01lx wC2fUb2IF2LnV7N/TfxbOmUxnSLlozFCaVM4QMFABPCYyG/W6ku8weTYoley6XzZ fyiO9RXIBGWnaBOK3c1gkwba1fp+PwA+k/4sfyhUXMpDkdRgq7f77xEIWC8PnIM= =8pXF -----END PGP SIGNATURE----- --zx4FCpZtqtKETZ7O--