summaryrefslogtreecommitdiffstats
path: root/include/block
diff options
context:
space:
mode:
authorPeter Krempa2020-02-28 13:44:46 +0100
committerKevin Wolf2020-03-06 17:15:37 +0100
commit17e1e2be5f9e84e0298e28e70675655b43e225ea (patch)
tree1f8b9883ffc04846e30d07915eaa0c6c09723919 /include/block
parentblock: Fix leak in bdrv_create_file_fallback() (diff)
downloadqemu-17e1e2be5f9e84e0298e28e70675655b43e225ea.tar.gz
qemu-17e1e2be5f9e84e0298e28e70675655b43e225ea.tar.xz
qemu-17e1e2be5f9e84e0298e28e70675655b43e225ea.zip
block: Introduce 'bdrv_reopen_commit_post' step
Add another step in the reopen process where driver can execute code after permission changes are comitted. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Message-Id: <adc02cf591c3cb34e98e33518eb1c540a0f27db1.1582893284.git.pkrempa@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/block')
-rw-r--r--include/block/block_int.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/block/block_int.h b/include/block/block_int.h
index 6f9fd5e20e..f422c0bff0 100644
--- a/include/block/block_int.h
+++ b/include/block/block_int.h
@@ -122,6 +122,7 @@ struct BlockDriver {
int (*bdrv_reopen_prepare)(BDRVReopenState *reopen_state,
BlockReopenQueue *queue, Error **errp);
void (*bdrv_reopen_commit)(BDRVReopenState *reopen_state);
+ void (*bdrv_reopen_commit_post)(BDRVReopenState *reopen_state);
void (*bdrv_reopen_abort)(BDRVReopenState *reopen_state);
void (*bdrv_join_options)(QDict *options, QDict *old_options);