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