All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] doc: Propose NBD_FLAG_INIT_ZEROES extension
@ 2016-12-05 23:42 Eric Blake
  2016-12-06  8:46 ` [Qemu-devel] [Nbd] " Alex Bligh
                   ` (3 more replies)
  0 siblings, 4 replies; 19+ messages in thread
From: Eric Blake @ 2016-12-05 23:42 UTC (permalink / raw)
  To: nbd-general
  Cc: qemu-devel, xieyingtai, subo7, eric.fangyi, pbonzini, qemu-block,
	stefanha

While not directly related to NBD_CMD_WRITE_ZEROES, the qemu
team discovered that it is useful if a server can advertise
whether an export is in a known-all-zeroes state at the time
the client connects.

Signed-off-by: Eric Blake <eblake@redhat.com>
---
 doc/proto.md | 5 +++++
 1 file changed, 5 insertions(+)

This replaces the following qemu patch attempt:
https://lists.gnu.org/archive/html/qemu-devel/2016-12/msg00357.html
which tried to add NBD_CMD_HAS_ZERO_INIT with poor semantics. The
semantics in this proposal should be much better.

Patch is to the merge of the master branch and the
extension-write-zeroes branch.  By the way, qemu 2.8 is due
to be released "real soon now", and implements NBD_CMD_WRITE_ZEROES,
so maybe it is time to consider promoting the extension-write-zeroes
branch into master.

diff --git a/doc/proto.md b/doc/proto.md
index afe71fc..7e4ec7f 100644
--- a/doc/proto.md
+++ b/doc/proto.md
@@ -697,6 +697,11 @@ The field has the following format:
   the export.
 - bit 9, `NBD_FLAG_SEND_BLOCK_STATUS`: defined by the experimental
   `BLOCK_STATUS` [extension](https://github.com/NetworkBlockDevice/nbd/blob/extension-blockstatus/doc/proto.md).
+- bit 10, `NBD_FLAG_INIT_ZEROES`: Indicates that the server guarantees
+  that at the time transmission phase begins, all offsets within the
+  export read as zero bytes.  Clients MAY use this information to
+  avoid writing to sections of the export that should still read as
+  zero after the client is done writing.

 Clients SHOULD ignore unknown flags.

-- 
2.9.3

^ permalink raw reply related	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2016-12-14 19:58 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-05 23:42 [Qemu-devel] [PATCH] doc: Propose NBD_FLAG_INIT_ZEROES extension Eric Blake
2016-12-06  8:46 ` [Qemu-devel] [Nbd] " Alex Bligh
2016-12-06 10:30   ` Alex Bligh
2016-12-06  9:25 ` [Qemu-devel] [Qemu-block] " Kevin Wolf
2016-12-06 10:29   ` [Qemu-devel] [Nbd] " Alex Bligh
2016-12-06 15:21   ` [Qemu-devel] " Eric Blake
2016-12-07 10:44     ` Kevin Wolf
2016-12-07 15:50       ` Eric Blake
2016-12-07 16:35         ` Kevin Wolf
2016-12-06 10:18 ` [Qemu-devel] " Stefan Hajnoczi
2016-12-12 18:12 ` [Qemu-devel] [Nbd] " Wouter Verhelst
2016-12-13  7:38   ` [Qemu-devel] [Qemu-block] " Kevin Wolf
2016-12-13 12:18     ` [Qemu-devel] [Nbd] [Qemu-block] " Wouter Verhelst
2016-12-13 13:19       ` Alex Bligh
2016-12-13 22:36       ` Eric Blake
2016-12-14  8:22         ` Wouter Verhelst
2016-12-14 16:37           ` Eric Blake
2016-12-14 16:54             ` Alex Bligh
2016-12-14 19:58             ` Wouter Verhelst

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.