]> git.proxmox.com Git - mirror_qemu.git/commit - block/iscsi.c
block: Add strong_runtime_opts to BlockDriver
authorMax Reitz <mreitz@redhat.com>
Fri, 1 Feb 2019 19:29:25 +0000 (20:29 +0100)
committerMax Reitz <mreitz@redhat.com>
Mon, 25 Feb 2019 14:11:27 +0000 (15:11 +0100)
commit2654267cc163083f4fb9a6d719468d9dd1bea455
tree1199e823b53bb502ec14a24041c54dd4703eefc4
parentc0625e80925302c449bb3f7a7ba6eb213da7c1e2
block: Add strong_runtime_opts to BlockDriver

This new field can be set by block drivers to list the runtime options
they accept that may influence the contents of the respective BDS. As of
a follow-up patch, this list will be used by the common
bdrv_refresh_filename() implementation to decide which options to put
into BDS.full_open_options (and consequently whether a JSON filename has
to be created), thus freeing the drivers of having to implement that
logic themselves.

Additionally, this patch adds the field to all of the block drivers that
need it and sets it accordingly.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Message-id: 20190201192935.18394-22-mreitz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
23 files changed:
block/blkdebug.c
block/blklogwrites.c
block/crypto.c
block/curl.c
block/gluster.c
block/iscsi.c
block/nbd.c
block/nfs.c
block/null.c
block/nvme.c
block/qcow.c
block/qcow2.c
block/quorum.c
block/raw-format.c
block/rbd.c
block/replication.c
block/sheepdog.c
block/ssh.c
block/throttle.c
block/vpc.c
block/vvfat.c
block/vxhs.c
include/block/block_int.h