aboutsummaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2017-09-14 12:47:11 +0200
committerKevin Wolf <kwolf@redhat.com>2017-09-26 14:46:23 +0200
commite0995dc3da0894d0a8260bddaa200a4cd7809ba4 (patch)
tree6c73c497bd2d3700feed9061a1ef4f3dc03cc7f4 /block
parentf3adefb2cea1c63b7b198acaef5e40eb4b2d2d39 (diff)
downloadqemu-e0995dc3da0894d0a8260bddaa200a4cd7809ba4.zip
qemu-e0995dc3da0894d0a8260bddaa200a4cd7809ba4.tar.gz
qemu-e0995dc3da0894d0a8260bddaa200a4cd7809ba4.tar.bz2
block: Add reopen_queue to bdrv_child_perm()
In the context of bdrv_reopen(), we'll have to look at the state of the graph as it will be after the reopen. This interface addition is in preparation for the change. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'block')
-rw-r--r--block/commit.c1
-rw-r--r--block/mirror.c1
-rw-r--r--block/replication.c1
-rw-r--r--block/vvfat.c1
4 files changed, 4 insertions, 0 deletions
diff --git a/block/commit.c b/block/commit.c
index 898d91f..8f0e835 100644
--- a/block/commit.c
+++ b/block/commit.c
@@ -257,6 +257,7 @@ static void bdrv_commit_top_close(BlockDriverState *bs)
static void bdrv_commit_top_child_perm(BlockDriverState *bs, BdrvChild *c,
const BdrvChildRole *role,
+ BlockReopenQueue *reopen_queue,
uint64_t perm, uint64_t shared,
uint64_t *nperm, uint64_t *nshared)
{
diff --git a/block/mirror.c b/block/mirror.c
index 6531652..6f5cb9f 100644
--- a/block/mirror.c
+++ b/block/mirror.c
@@ -1084,6 +1084,7 @@ static void bdrv_mirror_top_close(BlockDriverState *bs)
static void bdrv_mirror_top_child_perm(BlockDriverState *bs, BdrvChild *c,
const BdrvChildRole *role,
+ BlockReopenQueue *reopen_queue,
uint64_t perm, uint64_t shared,
uint64_t *nperm, uint64_t *nshared)
{
diff --git a/block/replication.c b/block/replication.c
index bf4462c..3a4e682 100644
--- a/block/replication.c
+++ b/block/replication.c
@@ -157,6 +157,7 @@ static void replication_close(BlockDriverState *bs)
static void replication_child_perm(BlockDriverState *bs, BdrvChild *c,
const BdrvChildRole *role,
+ BlockReopenQueue *reopen_queue,
uint64_t perm, uint64_t shared,
uint64_t *nperm, uint64_t *nshared)
{
diff --git a/block/vvfat.c b/block/vvfat.c
index 1d6e708..a0f2335 100644
--- a/block/vvfat.c
+++ b/block/vvfat.c
@@ -3202,6 +3202,7 @@ err:
static void vvfat_child_perm(BlockDriverState *bs, BdrvChild *c,
const BdrvChildRole *role,
+ BlockReopenQueue *reopen_queue,
uint64_t perm, uint64_t shared,
uint64_t *nperm, uint64_t *nshared)
{