[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 33/33] qcow2 spec: Describe string header extensions
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] [PULL 33/33] qcow2 spec: Describe string header extensions |
Date: |
Fri, 8 Mar 2019 13:58:23 +0100 |
Be more specific about the string representation in header extensions.
Suggested-by: Stefan Hajnoczi <address@hidden>
Signed-off-by: Kevin Wolf <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
---
docs/interop/qcow2.txt | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/docs/interop/qcow2.txt b/docs/interop/qcow2.txt
index bfb97cfde3..8c3098d8d9 100644
--- a/docs/interop/qcow2.txt
+++ b/docs/interop/qcow2.txt
@@ -170,11 +170,11 @@ be stored. Each extension has a structure like the
following:
Byte 0 - 3: Header extension type:
0x00000000 - End of the header extension area
- 0xE2792ACA - Backing file format name
+ 0xE2792ACA - Backing file format name string
0x6803f857 - Feature name table
0x23852875 - Bitmaps extension
0x0537be77 - Full disk encryption header pointer
- 0x44415441 - External data file name
+ 0x44415441 - External data file name string
other - Unknown header extension, can be safely
ignored
@@ -196,6 +196,16 @@ data of compatible features that it doesn't support.
Compatible features that
need space for additional data can use a header extension.
+== String header extensions ==
+
+Some header extensions (such as the backing file format name and the external
+data file name) are just a single string. In this case, the header extension
+length is the string length and the string is not '\0' terminated. (The header
+extension padding can make it look like a string is '\0' terminated, but
+neither is padding always necessary nor is there a guarantee that zero bytes
+are used for padding.)
+
+
== Feature name table ==
The feature name table is an optional header extension that contains the name
--
2.20.1
- [Qemu-devel] [PULL 19/33] qcow2: Return 0/-errno in qcow2_alloc_compressed_cluster_offset(), (continued)
- [Qemu-devel] [PULL 19/33] qcow2: Return 0/-errno in qcow2_alloc_compressed_cluster_offset(), Kevin Wolf, 2019/03/08
- [Qemu-devel] [PULL 09/33] qemu-iotests: Improve portability by searching bash in the $PATH, Kevin Wolf, 2019/03/08
- [Qemu-devel] [PULL 24/33] qcow2: Add basic data-file infrastructure, Kevin Wolf, 2019/03/08
- [Qemu-devel] [PULL 16/33] qcow2: Prepare qcow2_get_cluster_type() for external data file, Kevin Wolf, 2019/03/08
- [Qemu-devel] [PULL 21/33] qcow2: External file I/O, Kevin Wolf, 2019/03/08
- [Qemu-devel] [PULL 28/33] qemu-iotests: Preallocation with external data file, Kevin Wolf, 2019/03/08
- [Qemu-devel] [PULL 25/33] qcow2: Creating images with external data file, Kevin Wolf, 2019/03/08
- [Qemu-devel] [PULL 26/33] qcow2: Store data file name in the image, Kevin Wolf, 2019/03/08
- [Qemu-devel] [PULL 32/33] qemu-iotests: Add dependency to qemu-nbd tool, Kevin Wolf, 2019/03/08
- [Qemu-devel] [PULL 30/33] qemu-iotests: amend with external data file, Kevin Wolf, 2019/03/08
- [Qemu-devel] [PULL 33/33] qcow2 spec: Describe string header extensions,
Kevin Wolf <=
- [Qemu-devel] [PULL 31/33] ahci-test: Add dependency to qemu-img tool, Kevin Wolf, 2019/03/08
- [Qemu-devel] [PULL 27/33] qcow2: Implement data-file-raw create option, Kevin Wolf, 2019/03/08
- [Qemu-devel] [PULL 29/33] qemu-iotests: General tests for qcow2 with external data file, Kevin Wolf, 2019/03/08
- Re: [Qemu-devel] [PULL 00/33] Block layer patches, Peter Maydell, 2019/03/09