aboutsummaryrefslogtreecommitdiff
path: root/include/block
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2017-07-03 17:07:35 +0200
committerKevin Wolf <kwolf@redhat.com>2017-09-26 14:46:23 +0200
commit3045025991ebeec77ce89c8ec56e83858950bbb3 (patch)
treec5f59bfa82fa3263874f84a1fd9668770b41bd74 /include/block
parent1857c97b76af02537b954c86dab066503950a4fd (diff)
downloadqemu-3045025991ebeec77ce89c8ec56e83858950bbb3.zip
qemu-3045025991ebeec77ce89c8ec56e83858950bbb3.tar.gz
qemu-3045025991ebeec77ce89c8ec56e83858950bbb3.tar.bz2
block: Fix permissions after bdrv_reopen()
If we switch between read-only and read-write, the permissions that image format drivers need on bs->file change, too. Make sure to update the permissions during bdrv_reopen(). Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'include/block')
-rw-r--r--include/block/block.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/block/block.h b/include/block/block.h
index 082eb2c..3c3af46 100644
--- a/include/block/block.h
+++ b/include/block/block.h
@@ -166,6 +166,7 @@ typedef QSIMPLEQ_HEAD(BlockReopenQueue, BlockReopenQueueEntry) BlockReopenQueue;
typedef struct BDRVReopenState {
BlockDriverState *bs;
int flags;
+ uint64_t perm, shared_perm;
QDict *options;
QDict *explicit_options;
void *opaque;