summaryrefslogtreecommitdiffstats
path: root/include/block
diff options
context:
space:
mode:
authorMaxim Levitsky2020-06-25 14:55:39 +0200
committerMax Reitz2020-07-06 08:49:28 +0200
commitdf373fb0a3a26c2b1b92d27c91bea22a0f5b598d (patch)
tree3ff9f9f4fc389e4762a3d87737b14029dbcdcce4 /include/block
parentblock/amend: add 'force' option (diff)
downloadqemu-df373fb0a3a26c2b1b92d27c91bea22a0f5b598d.tar.gz
qemu-df373fb0a3a26c2b1b92d27c91bea22a0f5b598d.tar.xz
qemu-df373fb0a3a26c2b1b92d27c91bea22a0f5b598d.zip
block/amend: separate amend and create options for qemu-img
Some options are only useful for creation (or hard to be amended, like cluster size for qcow2), while some other options are only useful for amend, like upcoming keyslot management options for luks Since currently only qcow2 supports amend, move all its options to a common macro and then include it in each action option list. In future it might be useful to remove some options which are not supported anyway from amend list, which currently cause an error message if amended. Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Message-Id: <20200608094030.670121-5-mlevitsk@redhat.com> Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'include/block')
-rw-r--r--include/block/block_int.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/block/block_int.h b/include/block/block_int.h
index 066b9eaa40..ed335519cc 100644
--- a/include/block/block_int.h
+++ b/include/block/block_int.h
@@ -420,6 +420,10 @@ struct BlockDriver {
/* List of options for creating images, terminated by name == NULL */
QemuOptsList *create_opts;
+
+ /* List of options for image amend */
+ QemuOptsList *amend_opts;
+
/*
* If this driver supports reopening images this contains a
* NULL-terminated list of the runtime options that can be