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