]> git.proxmox.com Git - mirror_qemu.git/blobdiff - include/block/block_int.h
block: Add a 'mutable_opts' field to BlockDriver
[mirror_qemu.git] / include / block / block_int.h
index 438feba4e5bf2fe5b4916601b6489bafe8d6526c..01e855a0664da5b52193160a07a7c2cd7f0c8e12 100644 (file)
@@ -383,6 +383,14 @@ struct BlockDriver {
 
     /* List of options for creating images, terminated by name == NULL */
     QemuOptsList *create_opts;
+    /*
+     * If this driver supports reopening images this contains a
+     * NULL-terminated list of the runtime options that can be
+     * modified. If an option in this list is unspecified during
+     * reopen then it _must_ be reset to its default value or return
+     * an error.
+     */
+    const char *const *mutable_opts;
 
     /*
      * Returns 0 for completed check, -errno for internal errors.