From: Eric Blake <eblake@redhat.com>
To: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>,
Wouter Verhelst <w@uter.be>, nbd list <nbd@other.debian.org>,
Alex Bligh <alex@alex.org.uk>, qemu-devel <qemu-devel@nongnu.org>,
qemu block <qemu-block@nongnu.org>
Subject: Re: [Qemu-devel] BLOCK_STATUS extension
Date: Wed, 14 Feb 2018 08:56:49 -0600 [thread overview]
Message-ID: <2ad975a6-7624-cb63-ce1e-2dadf9b1c40e@redhat.com> (raw)
In-Reply-To: <18b3a8c6-4f5c-3623-a781-5beb94375331@virtuozzo.com>
[using the updated nbd list email]
On 02/14/2018 08:35 AM, Vladimir Sementsov-Ogievskiy wrote:
> Hi all.
>
> Just note: looks like we allow zero-sized metadata context name. Is it ok?
>
> *
>
> |NBD_REP_META_CONTEXT| (4)
>
> A description of a metadata context. Data:
>
> o 32 bits, NBD metadata context ID.
> o String, name of the metadata context. This is not required to be
> a human-readable string, but it MUST be valid UTF-8 data.
No; elsewhere we state:
>
> Metadata contexts are identified by their names. The name MUST consist of a namespace, followed by a colon, followed by a leaf-name. The namespace must consist entirely of printable non-whitespace UTF-8 characters other than colons, and be non-empty. The entire name (namespace, colon, and leaf-name) MUST follow the restrictions for strings as laid out earlier in this document.
>
> Namespaces MUST be consist of one of the following:
>
> base, for metadata contexts defined by this document;
> nbd-server, for metadata contexts defined by the implementation that accompanies this document (none currently);
> x-*, where * can be replaced by an arbitrary string not containing colons, for local experiments. This SHOULD NOT be used by metadata contexts that are expected to be widely used.
> A third-party namespace from the list below.
>
So a name must be at least 2 bytes (for a one-byte namespace, if someone
ever registers one - and supposing that namespace has zero-byte leaf
names), but will more commonly be even longer.
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
next prev parent reply other threads:[~2018-02-14 14:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-14 14:35 [Qemu-devel] BLOCK_STATUS extension Vladimir Sementsov-Ogievskiy
2018-02-14 14:56 ` Eric Blake [this message]
2018-02-14 15:28 ` 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=2ad975a6-7624-cb63-ce1e-2dadf9b1c40e@redhat.com \
--to=eblake@redhat.com \
--cc=alex@alex.org.uk \
--cc=nbd@other.debian.org \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=vsementsov@virtuozzo.com \
--cc=w@uter.be \
/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).