yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
26ba25
From 4ae2c1a9deaea0ed095bd960da92d87eda2eb70a Mon Sep 17 00:00:00 2001
26ba25
From: John Snow <jsnow@redhat.com>
26ba25
Date: Wed, 18 Jul 2018 22:55:05 +0200
26ba25
Subject: [PATCH 247/268] docs/interop: add nbd.txt
26ba25
26ba25
RH-Author: John Snow <jsnow@redhat.com>
26ba25
Message-id: <20180718225511.14878-30-jsnow@redhat.com>
26ba25
Patchwork-id: 81416
26ba25
O-Subject: [RHEL-7.6 qemu-kvm-rhev PATCH 29/35] docs/interop: add nbd.txt
26ba25
Bugzilla: 1207657
26ba25
RH-Acked-by: Eric Blake <eblake@redhat.com>
26ba25
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
26ba25
RH-Acked-by: Fam Zheng <famz@redhat.com>
26ba25
26ba25
From: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
26ba25
26ba25
Describe new metadata namespace: "qemu".
26ba25
26ba25
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
26ba25
Message-Id: <20180609151758.17343-7-vsementsov@virtuozzo.com>
26ba25
Reviewed-by: Eric Blake <eblake@redhat.com>
26ba25
[eblake: grammar tweaks]
26ba25
Signed-off-by: Eric Blake <eblake@redhat.com>
26ba25
(cherry picked from commit 3229a835a3c574a8ebc605e007785c4e01c61623)
26ba25
Signed-off-by: John Snow <jsnow@redhat.com>
26ba25
26ba25
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
26ba25
---
26ba25
 MAINTAINERS          |  1 +
26ba25
 docs/interop/nbd.txt | 38 ++++++++++++++++++++++++++++++++++++++
26ba25
 2 files changed, 39 insertions(+)
26ba25
 create mode 100644 docs/interop/nbd.txt
26ba25
26ba25
diff --git a/MAINTAINERS b/MAINTAINERS
26ba25
index a783c92..53d5216 100644
26ba25
--- a/MAINTAINERS
26ba25
+++ b/MAINTAINERS
26ba25
@@ -1927,6 +1927,7 @@ F: nbd/
26ba25
 F: include/block/nbd*
26ba25
 F: qemu-nbd.*
26ba25
 F: blockdev-nbd.c
26ba25
+F: docs/interop/nbd.txt
26ba25
 T: git git://repo.or.cz/qemu/ericb.git nbd
26ba25
 
26ba25
 NFS
26ba25
diff --git a/docs/interop/nbd.txt b/docs/interop/nbd.txt
26ba25
new file mode 100644
26ba25
index 0000000..77b5f45
26ba25
--- /dev/null
26ba25
+++ b/docs/interop/nbd.txt
26ba25
@@ -0,0 +1,38 @@
26ba25
+Qemu supports the NBD protocol, and has an internal NBD client (see
26ba25
+block/nbd.c), an internal NBD server (see blockdev-nbd.c), and an
26ba25
+external NBD server tool (see qemu-nbd.c). The common code is placed
26ba25
+in nbd/*.
26ba25
+
26ba25
+The NBD protocol is specified here:
26ba25
+https://github.com/NetworkBlockDevice/nbd/blob/master/doc/proto.md
26ba25
+
26ba25
+The following paragraphs describe some specific properties of NBD
26ba25
+protocol realization in Qemu.
26ba25
+
26ba25
+= Metadata namespaces =
26ba25
+
26ba25
+Qemu supports the "base:allocation" metadata context as defined in the
26ba25
+NBD protocol specification, and also defines an additional metadata
26ba25
+namespace "qemu".
26ba25
+
26ba25
+
26ba25
+== "qemu" namespace ==
26ba25
+
26ba25
+The "qemu" namespace currently contains only one type of context,
26ba25
+related to exposing the contents of a dirty bitmap alongside the
26ba25
+associated disk contents.  That context has the following form:
26ba25
+
26ba25
+    qemu:dirty-bitmap:<dirty-bitmap-export-name>
26ba25
+
26ba25
+Each dirty-bitmap metadata context defines only one flag for extents
26ba25
+in reply for NBD_CMD_BLOCK_STATUS:
26ba25
+
26ba25
+    bit 0: NBD_STATE_DIRTY, means that the extent is "dirty"
26ba25
+
26ba25
+For NBD_OPT_LIST_META_CONTEXT the following queries are supported
26ba25
+in addition to "qemu:dirty-bitmap:<dirty-bitmap-export-name>":
26ba25
+
26ba25
+* "qemu:" - returns list of all available metadata contexts in the
26ba25
+            namespace.
26ba25
+* "qemu:dirty-bitmap:" - returns list of all available dirty-bitmap
26ba25
+                         metadata contexts.
26ba25
-- 
26ba25
1.8.3.1
26ba25