Received: from eggs.gnu.org ([2001:4830:134:3::10]:53914) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVhd4-0006Q7-DO for qemu-devel@nongnu.org; Wed, 20 Jun 2018 14:14:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fVhd3-0008UH-B7 for qemu-devel@nongnu.org; Wed, 20 Jun 2018 14:14:50 -0400 References: <20180609151758.17343-1-vsementsov@virtuozzo.com> <20180609151758.17343-6-vsementsov@virtuozzo.com> <45f6544a-d384-f3cc-5fd4-c3d5f0268f25@redhat.com> From: Eric Blake Message-ID: <88afa2f6-39b3-092e-33c2-4436cbe8e5dd@redhat.com> Date: Wed, 20 Jun 2018 13:14:42 -0500 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v5 5/6] qapi: new qmp command nbd-server-add-bitmap List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Vladimir Sementsov-Ogievskiy , qemu-block@nongnu.org, qemu-devel@nongnu.org Cc: armbru@redhat.com, pbonzini@redhat.com, mreitz@redhat.com, kwolf@redhat.com, den@openvz.org, Nikolay Shirokovskiy On 06/20/2018 09:13 AM, Vladimir Sementsov-Ogievskiy wrote: > 20.06.2018 14:26, Eric Blake wrote: >> On 06/09/2018 10:17 AM, Vladimir Sementsov-Ogievskiy wrote: >>> Signed-off-by: Vladimir Sementsov-Ogievskiy >>> --- >>> =C2=A0 qapi/block.json | 23 +++++++++++++++++++++++ >>> =C2=A0 blockdev-nbd.c=C2=A0 | 23 +++++++++++++++++++++++ >>> =C2=A0 2 files changed, 46 insertions(+) >> >> I'm tempted to temporarily name this x-nbd-server-add-bitmap, until I=20 >> have the counterpart Libvirt patches tested, just in case testing=20 >> turns up any tweaks we need to the interface. >> >>> +# @bitmap-export-name: How the bitmap will be seen by nbd clients >>> +#=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (default @bitma= p) >> >> Do we really need the flexibility of naming the bitmap differently to=20 >> the NBD client than we do in qemu? >=20 > It was needed for our backup-api implementation. Nikolay? In fact, if we include the ability now, we can't remove it later (unless=20 we use the x- prefix); but if we omit it now, we can add it later=20 (regardless of using the x- prefix). So I've gone ahead and added the=20 x- prefix; here's what I'm squashing, along with: Reviewed-by: Eric Blake diff --git i/qapi/block.json w/qapi/block.json index ddbca2e286c..ca807f176ae 100644 --- i/qapi/block.json +++ w/qapi/block.json @@ -269,7 +269,7 @@ 'data': {'name': 'str', '*mode': 'NbdServerRemoveMode'} } ## -# @nbd-server-add-bitmap: +# @x-nbd-server-add-bitmap: # # Expose a dirty bitmap associated with the selected export. The=20 bitmap search # starts at the device attached to the export, and includes all=20 backing files. @@ -288,7 +288,7 @@ # # Since: 3.0 ## - { 'command': 'nbd-server-add-bitmap', + { 'command': 'x-nbd-server-add-bitmap', 'data': {'name': 'str', 'bitmap': 'str', '*bitmap-export-name':=20 'str'} } ## diff --git i/blockdev-nbd.c w/blockdev-nbd.c index 6b0c50732c1..1ef11041a73 100644 --- i/blockdev-nbd.c +++ w/blockdev-nbd.c @@ -221,10 +221,10 @@ void qmp_nbd_server_stop(Error **errp) nbd_server =3D NULL; } -void qmp_nbd_server_add_bitmap(const char *name, const char *bitmap, - bool has_bitmap_export_name, - const char *bitmap_export_name, - Error **errp) +void qmp_x_nbd_server_add_bitmap(const char *name, const char *bitmap, + bool has_bitmap_export_name, + const char *bitmap_export_name, + Error **errp) { NBDExport *exp; --=20 Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org