qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
To: Eric Blake <eblake@redhat.com>,
	qemu-devel@nongnu.org, qemu-block@nongnu.org
Cc: kwolf@redhat.com, armbru@redhat.com,
	nbd list <nbd@other.debian.org>,
	den@openvz.org, pbonzini@redhat.com, mreitz@redhat.com
Subject: Re: [Qemu-devel] [PATCH 3/4] nbd/server: implement dirty bitmap export
Date: Wed, 28 Mar 2018 13:08:06 +0300	[thread overview]
Message-ID: <099cd2fb-1de3-17fa-f993-ab50580a55dd@virtuozzo.com> (raw)
In-Reply-To: <17359493-4ac4-59d7-0407-03c2d38cb54f@virtuozzo.com>

22.03.2018 18:26, Vladimir Sementsov-Ogievskiy wrote:
> 21.03.2018 19:57, Eric Blake wrote:
>> On 03/21/2018 07:19 AM, Vladimir Sementsov-Ogievskiy wrote:
>>> Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
>>
>> Rather sparse on the details in the commit message; I had to read the 
>> patch to even learn what the new namespace is.
>
> oh, yes, sorry :(
>
>>> @@ -92,6 +101,7 @@ typedef struct NBDExportMetaContexts {
>>>       bool valid; /* means that negotiation of the option finished 
>>> without
>>>                      errors */
>>>       bool base_allocation; /* export base:allocation context (block 
>>> status) */
>>> +    bool dirty_bitmap; /* export 
>>> qemu-dirty-bitmap:<export_bitmap_name> */
>>
>> That's a LONG namespace name, and it does not lend itself well to 
>> other qemu extensions; so future qemu BLOCK_STATUS additions would 
>> require consuming yet another namespace and additional upstream NBD 
>> registration.  Wouldn't it be better to have the namespace be 'qemu:' 
>> (which we register with upstream NBD just once), where we are then 
>> free to document leafnames to look like 'dirty-bitmap:name' or 
>> 'foo:bar'?
>
> No doubts. (and this shows, that we may want namespaces in namespaces, 
> so we'll parse ':' anyway).
>
> Only one note here (I'm ashamed): 'qemu-dirty-bitmap' namespace is 
> used in Virtuozzo for the feature, yes, without 'x-' prefix. It's my 
> fault, and it should not influence final solution. The probability of 
> problems is near to zero (especially if we decide now to use 'qemu:' 
> namespace for all qemu-specific things. But I'm not sure about, should 
> we mention this fact in the spec.
> [cc NBD list]
>

Looks like at this point, we can safely move to qemu:dirty-bitmap:name, 
or any other thing, and we don't need to support my first variant.

-- 
Best regards,
Vladimir

  reply	other threads:[~2018-03-28 10:08 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-21 12:19 [Qemu-devel] [PATCH for-2.13 0/4] NBD export bitmaps Vladimir Sementsov-Ogievskiy
2018-03-21 12:19 ` [Qemu-devel] [PATCH 1/4] nbd/server: refactor nbd_negotiate_meta_query for several namespaces Vladimir Sementsov-Ogievskiy
2018-03-21 14:56   ` Eric Blake
2018-03-21 17:20     ` Wouter Verhelst
2018-03-22 14:35     ` Vladimir Sementsov-Ogievskiy
2018-03-21 12:19 ` [Qemu-devel] [PATCH 2/4] nbd/server: add nbd_meta_single_query helper Vladimir Sementsov-Ogievskiy
2018-03-21 15:05   ` Eric Blake
2018-04-13 17:44     ` Vladimir Sementsov-Ogievskiy
2018-04-13 21:06       ` [Qemu-devel] [Qemu-block] " John Snow
2018-04-16 11:22         ` Vladimir Sementsov-Ogievskiy
2018-03-21 12:19 ` [Qemu-devel] [PATCH 3/4] nbd/server: implement dirty bitmap export Vladimir Sementsov-Ogievskiy
2018-03-21 16:57   ` Eric Blake
2018-03-22 15:26     ` Vladimir Sementsov-Ogievskiy
2018-03-28 10:08       ` Vladimir Sementsov-Ogievskiy [this message]
2018-03-22 15:32     ` Vladimir Sementsov-Ogievskiy
2018-03-21 12:19 ` [Qemu-devel] [PATCH 4/4] qapi: new qmp command nbd-server-add-bitmap Vladimir Sementsov-Ogievskiy
2018-03-21 17:33   ` Eric Blake
2018-03-22 15:43     ` Vladimir Sementsov-Ogievskiy
2018-03-22 16:19       ` Eric Blake
2018-03-22 16:45         ` Vladimir Sementsov-Ogievskiy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=099cd2fb-1de3-17fa-f993-ab50580a55dd@virtuozzo.com \
    --to=vsementsov@virtuozzo.com \
    --cc=armbru@redhat.com \
    --cc=den@openvz.org \
    --cc=eblake@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=mreitz@redhat.com \
    --cc=nbd@other.debian.org \
    --cc=pbonzini@redhat.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).