* [Qemu-devel] BLOCK_STATUS extension @ 2018-02-14 14:35 Vladimir Sementsov-Ogievskiy 2018-02-14 14:56 ` Eric Blake 0 siblings, 1 reply; 3+ messages in thread From: Vladimir Sementsov-Ogievskiy @ 2018-02-14 14:35 UTC (permalink / raw) To: Eric Blake, Wouter Verhelst, nbd-general@lists.sourceforge.net, Alex Bligh, qemu-devel, qemu block 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. -- Best regards, Vladimir ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] BLOCK_STATUS extension 2018-02-14 14:35 [Qemu-devel] BLOCK_STATUS extension Vladimir Sementsov-Ogievskiy @ 2018-02-14 14:56 ` Eric Blake 2018-02-14 15:28 ` Vladimir Sementsov-Ogievskiy 0 siblings, 1 reply; 3+ messages in thread From: Eric Blake @ 2018-02-14 14:56 UTC (permalink / raw) To: Vladimir Sementsov-Ogievskiy, Wouter Verhelst, nbd list, Alex Bligh, qemu-devel, qemu block [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 ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] BLOCK_STATUS extension 2018-02-14 14:56 ` Eric Blake @ 2018-02-14 15:28 ` Vladimir Sementsov-Ogievskiy 0 siblings, 0 replies; 3+ messages in thread From: Vladimir Sementsov-Ogievskiy @ 2018-02-14 15:28 UTC (permalink / raw) To: Eric Blake, Wouter Verhelst, nbd list, Alex Bligh, qemu-devel, qemu block 14.02.2018 17:56, Eric Blake wrote: > [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. > Ok, thank you. -- Best regards, Vladimir ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-02-14 15:54 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2018-02-14 14:35 [Qemu-devel] BLOCK_STATUS extension Vladimir Sementsov-Ogievskiy 2018-02-14 14:56 ` Eric Blake 2018-02-14 15:28 ` Vladimir Sementsov-Ogievskiy
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).