qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: "Richard W.M. Jones" <rjones@redhat.com>,
	Markus Armbruster <armbru@redhat.com>
Cc: kwolf@redhat.com, vsementsov@virtuozzo.com,
	qemu-block@nongnu.org, qemu-devel@nongnu.org,
	Max Reitz <mreitz@redhat.com>,
	stefanha@redhat.com
Subject: Re: [PATCH v3 2/6] nbd: Add 'qemu-nbd -A' to expose allocation depth
Date: Fri, 9 Oct 2020 07:13:11 -0500	[thread overview]
Message-ID: <ab63b4f3-529d-d690-5507-2f35282b3f0e@redhat.com> (raw)
In-Reply-To: <20201009090338.GE30079@redhat.com>


[-- Attachment #1.1: Type: text/plain, Size: 1571 bytes --]

On 10/9/20 4:03 AM, Richard W.M. Jones wrote:

>>> +++ b/qapi/block-core.json
>>> @@ -3882,9 +3882,12 @@
>>>  #
>>>  # @tls-creds: TLS credentials ID
>>>  #
>>> -# @x-dirty-bitmap: A "qemu:dirty-bitmap:NAME" string to query in place of
>>> +# @x-dirty-bitmap: A metacontext name such as "qemu:dirty-bitmap:NAME" or
>>
>> What is a "metacontext"?
>>
>> Aside: nbd.h spells it "meta context".  The two spellings suggest
>> different meanings to me.  Using meta- as a prefix modifies the prefixed
>> word, as in metadata (data that provides information about other data).
>> Separated by space, meta becomes a noun.  None of its common meanings
>> seem to apply here.  Recommend to pick an appropriate one of
>> "metacontext", "meta-context", "meta context", and stick to it.
> 
> In the NBD protocol it's called a "metadata context".  This is
> abbreviated to "...META_CONTEXT" in the names of constants,
> eg. NBD_OPT_SET_META_CONTEXT.  For the reasons you gave I don't think
> it's a very good name, but it's what we have.
> 
> https://github.com/NetworkBlockDevice/nbd/blob/master/doc/proto.md#metadata-querying
> 
> What it actually is, is a string, like "base:allocation" or
> "qemu:dirty-bitmap:<NAME>" which selects which metadata you want to
> query in NBD_CMD_BLOCK_STATUS commands.

Sounds like documenting it as a "metadata context name" is probably the
one to use then. I'll make that adjustment.

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  reply	other threads:[~2020-10-09 12:14 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-09  2:07 [PATCH v3 0/6] Exposing backing-chain allocation over NBD Eric Blake
2020-10-09  2:07 ` [PATCH v3 1/6] nbd: Add new qemu:allocation-depth metacontext Eric Blake
2020-10-09  2:07 ` [PATCH v3 2/6] nbd: Add 'qemu-nbd -A' to expose allocation depth Eric Blake
2020-10-09  8:10   ` Markus Armbruster
2020-10-09  9:03     ` Richard W.M. Jones
2020-10-09 12:13       ` Eric Blake [this message]
2020-10-09  2:07 ` [PATCH v3 3/6] nbd: Update qapi to support multiple bitmaps Eric Blake
2020-10-09  2:07 ` [PATCH v3 4/6] nbd: Simplify qemu bitmap context name Eric Blake
2020-10-09  2:07 ` [PATCH v3 5/6] nbd: Refactor counting of meta contexts Eric Blake
2020-10-09  2:07 ` [PATCH v3 6/6] nbd: Allow export of multiple bitmaps for one device Eric Blake

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=ab63b4f3-529d-d690-5507-2f35282b3f0e@redhat.com \
    --to=eblake@redhat.com \
    --cc=armbru@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=mreitz@redhat.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=rjones@redhat.com \
    --cc=stefanha@redhat.com \
    --cc=vsementsov@virtuozzo.com \
    /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).