From: Wouter Verhelst <w@uter.be>
To: Alex Bligh <alex@alex.org.uk>
Cc: nbd-general@lists.sourceforge.net, Kevin Wolf <kwolf@redhat.com>,
Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>,
qemu-devel@nongnu.org, Pavel Borzenkov <pborzenkov@virtuozzo.com>,
stefanha@redhat.com, "Denis V . Lunev" <den@openvz.org>,
Markus Pargmann <mpa@pengutronix.de>,
Paolo Bonzini <pbonzini@redhat.com>, John Snow <jsnow@redhat.com>
Subject: Re: [Qemu-devel] [Nbd] [PATCH] Further tidy-up on block status
Date: Wed, 14 Dec 2016 18:09:56 +0100 [thread overview]
Message-ID: <20161214170956.32o6b27baf3bkmd4@grep.be> (raw)
In-Reply-To: <20161214150840.10899-1-alex@alex.org.uk>
On Wed, Dec 14, 2016 at 03:08:40PM +0000, Alex Bligh wrote:
> (NB: I've already applied this and pushed it)
Thanks.
> * Change NBD_OPT_LIST_METADATA etc. to explicitly send a list of queries
> and add a count of queries so we can extend the command later (rather than
> rely on the length of option)
Sure, that works.
> * For NBD_OPT_LIST_METADATA make absence of any query (as opposed to zero
> length query) list all contexts, as absence of any query is now simple.
>
> * Move definition of namespaces in the document to somewhere more appopriate.
>
> * Various other minor changes as discussed on the mailing list
Right. I think we're getting close to a good spec now, for this thing.
One thing I've been thinking about that we might want to add:
There may be cases where a server, in performing the required calls to
be able to handle a BLOCK_STATUS request, will end up with more
information than the client asked; e.g., if the client asked information
in the base:allocation context on an extent at offset X of length Y,
then the server might conceivably do an lseek(SEEK_DATA) and/or
lseek(SEEK_HOLE). The result of that call might be that the file offset
will now point to a location Z, where Z > (X+Y).
Currently, our spec says "the sum of the *length* fields MUST not be
greater than the overall *length* of request". This means that in
essense, the server then has to throw away the information it has on the
range Z - (X + Y). In case a client was interested in that information,
that seems like a waste. I would therefore like to remove that
requirement, by rephrasing that "sum of the *length* fields" thing into
something along the following lines:
In case the server returns N extents, the sum of the *length* fields
of the first N-1 extents MUST NOT be greater than the overall *length*
of the request. The final extent MAY exceed the length of the request
if the server has that information anyway as a side effect of looking
up the required information and wishes to share it.
This would then result in the fact that the "length" field in the
BLOCK_STATUS command would be little more than a hint, since we're
saying that a server can return more data than requested (if it's
available anyway) and less data than requested (if it would be too
resource-intensive to provide all the information). Not sure whether all
that makes much sense anymore, but hey.
In addition, the combination of a server providing more information than
requested with a "REQ_ONE" flag and a length field of zero could be an
interesting way to enumerate a whole export, too. Essentially, we could
define that as a client saying "I'm interested in what the size of the
extent at offset X is, and what its properties are".
Thoughts?
--
< ron> I mean, the main *practical* problem with C++, is there's like a dozen
people in the world who think they really understand all of its rules,
and pretty much all of them are just lying to themselves too.
-- #debian-devel, OFTC, 2016-02-12
next prev parent reply other threads:[~2016-12-14 17:10 UTC|newest]
Thread overview: 62+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-14 15:08 [Qemu-devel] [PATCH] Further tidy-up on block status Alex Bligh
2016-12-14 16:25 ` Vladimir Sementsov-Ogievskiy
2016-12-14 16:38 ` Alex Bligh
2016-12-14 17:05 ` Vladimir Sementsov-Ogievskiy
2016-12-14 17:36 ` Alex Bligh
2016-12-14 17:55 ` Vladimir Sementsov-Ogievskiy
2016-12-14 18:13 ` [Qemu-devel] [Nbd] " Wouter Verhelst
2016-12-14 18:18 ` Alex Bligh
2016-12-14 18:49 ` Wouter Verhelst
2016-12-14 19:01 ` Alex Bligh
2016-12-14 20:10 ` Wouter Verhelst
2016-12-26 15:57 ` Vladimir Sementsov-Ogievskiy
2016-12-29 16:08 ` Alex Bligh
2016-12-29 16:35 ` Vladimir Sementsov-Ogievskiy
2016-12-14 18:51 ` Alex Bligh
2016-12-14 20:18 ` Wouter Verhelst
2016-12-15 10:04 ` Alex Bligh
2016-12-15 15:03 ` Wouter Verhelst
2016-12-15 16:32 ` Alex Bligh
2016-12-15 16:49 ` Wouter Verhelst
2016-12-15 17:34 ` Alex Bligh
2016-12-16 15:52 ` Wouter Verhelst
2016-12-16 16:25 ` Alex Bligh
2016-12-17 8:34 ` Wouter Verhelst
2016-12-17 9:41 ` Alex Bligh
2016-12-14 18:17 ` [Qemu-devel] " Alex Bligh
2016-12-26 14:52 ` Vladimir Sementsov-Ogievskiy
2016-12-28 0:18 ` [Qemu-devel] [Nbd] " Wouter Verhelst
2016-12-29 16:04 ` Alex Bligh
2016-12-29 16:28 ` Vladimir Sementsov-Ogievskiy
2016-12-14 16:58 ` [Qemu-devel] " Eric Blake
2016-12-14 17:03 ` Alex Bligh
2016-12-14 17:09 ` Wouter Verhelst [this message]
2016-12-14 17:33 ` [Qemu-devel] [Nbd] " Vladimir Sementsov-Ogievskiy
2016-12-14 17:39 ` Alex Bligh
2016-12-14 20:47 ` John Snow
2018-05-03 16:18 ` Eric Blake
2018-05-03 17:26 ` Eric Blake
2018-05-04 6:40 ` Wouter Verhelst
2016-12-27 14:09 ` [Qemu-devel] " Vladimir Sementsov-Ogievskiy
2016-12-27 15:56 ` Eric Blake
2016-12-29 16:14 ` Alex Bligh
2017-01-11 15:31 ` Vladimir Sementsov-Ogievskiy
2017-01-11 19:00 ` Alex Bligh
2017-01-12 7:05 ` Vladimir Sementsov-Ogievskiy
2017-01-12 13:11 ` Alex Bligh
2017-01-13 9:48 ` Vladimir Sementsov-Ogievskiy
2017-01-13 10:29 ` Alex Bligh
2017-01-16 12:26 ` Vladimir Sementsov-Ogievskiy
2017-01-12 11:43 ` Vladimir Sementsov-Ogievskiy
2017-01-12 13:16 ` Alex Bligh
2017-01-20 17:04 ` Vladimir Sementsov-Ogievskiy
2017-01-20 18:00 ` Alex Bligh
2017-01-20 19:35 ` Eric Blake
2017-01-21 12:25 ` [Qemu-devel] [Nbd] " Wouter Verhelst
2018-02-16 12:35 ` Eric Blake
2018-02-16 13:53 ` Vladimir Sementsov-Ogievskiy
2018-02-16 16:10 ` Eric Blake
2018-02-28 13:08 ` Wouter Verhelst
2018-02-28 20:26 ` Eric Blake
2018-02-28 20:29 ` Eric Blake
2018-03-01 9:54 ` 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=20161214170956.32o6b27baf3bkmd4@grep.be \
--to=w@uter.be \
--cc=alex@alex.org.uk \
--cc=den@openvz.org \
--cc=jsnow@redhat.com \
--cc=kwolf@redhat.com \
--cc=mpa@pengutronix.de \
--cc=nbd-general@lists.sourceforge.net \
--cc=pbonzini@redhat.com \
--cc=pborzenkov@virtuozzo.com \
--cc=qemu-devel@nongnu.org \
--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).