aboutsummaryrefslogtreecommitdiff
path: root/block/qcow2.h
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2019-01-29 17:13:57 +0100
committerKevin Wolf <kwolf@redhat.com>2019-03-08 12:26:46 +0100
commit0e8c08be276637a7339a05a4646b6eb8428ee802 (patch)
treeb6ff1569405f5902c9f0b49627548b6ffdf76355 /block/qcow2.h
parente9f5b6deaa865e5265327de42b77553840c94880 (diff)
downloadqemu-0e8c08be276637a7339a05a4646b6eb8428ee802.zip
qemu-0e8c08be276637a7339a05a4646b6eb8428ee802.tar.gz
qemu-0e8c08be276637a7339a05a4646b6eb8428ee802.tar.bz2
qcow2: Add basic data-file infrastructure
This adds a .bdrv_open option to specify the external data file node. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/qcow2.h')
-rw-r--r--block/qcow2.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/block/qcow2.h b/block/qcow2.h
index aac7fc4..f23c003 100644
--- a/block/qcow2.h
+++ b/block/qcow2.h
@@ -91,6 +91,7 @@
#define DEFAULT_CLUSTER_SIZE 65536
+#define QCOW2_OPT_DATA_FILE "data-file"
#define QCOW2_OPT_LAZY_REFCOUNTS "lazy-refcounts"
#define QCOW2_OPT_DISCARD_REQUEST "pass-discard-request"
#define QCOW2_OPT_DISCARD_SNAPSHOT "pass-discard-snapshot"
@@ -205,7 +206,8 @@ enum {
QCOW2_INCOMPAT_DATA_FILE = 1 << QCOW2_INCOMPAT_DATA_FILE_BITNR,
QCOW2_INCOMPAT_MASK = QCOW2_INCOMPAT_DIRTY
- | QCOW2_INCOMPAT_CORRUPT,
+ | QCOW2_INCOMPAT_CORRUPT
+ | QCOW2_INCOMPAT_DATA_FILE,
};
/* Compatible feature bits */