diff options
| author | Kevin Wolf <kwolf@redhat.com> | 2017-01-20 15:42:39 +0100 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2017-02-28 20:40:36 +0100 |
| commit | 981776b34875ef75b218a338e1831b8fc65ea6bd (patch) | |
| tree | 674bf4a9192d58cded0335b7c5c6ae0a5af8c7ea /include/sysemu/block-backend.h | |
| parent | f68c598be6a48995ca4c7cc42fc1f6e1195ec7aa (diff) | |
| download | focaccia-qemu-981776b34875ef75b218a338e1831b8fc65ea6bd.tar.gz focaccia-qemu-981776b34875ef75b218a338e1831b8fc65ea6bd.zip | |
block: Add permissions to BlockBackend
The BlockBackend can now store the permissions that its user requires. This is necessary because nodes can be ejected from or inserted into a BlockBackend and all of these operations must make sure that the user still gets what it requested initially. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Acked-by: Fam Zheng <famz@redhat.com>
Diffstat (limited to 'include/sysemu/block-backend.h')
| -rw-r--r-- | include/sysemu/block-backend.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sysemu/block-backend.h b/include/sysemu/block-backend.h index f365a51acf..4a18e86b85 100644 --- a/include/sysemu/block-backend.h +++ b/include/sysemu/block-backend.h @@ -105,6 +105,8 @@ void blk_remove_bs(BlockBackend *blk); void blk_insert_bs(BlockBackend *blk, BlockDriverState *bs); bool bdrv_has_blk(BlockDriverState *bs); bool bdrv_is_root_node(BlockDriverState *bs); +int blk_set_perm(BlockBackend *blk, uint64_t perm, uint64_t shared_perm, + Error **errp); void blk_set_allow_write_beyond_eof(BlockBackend *blk, bool allow); void blk_iostatus_enable(BlockBackend *blk); |