qemu-patch-raspberry4/nbd
Kevin Wolf 6d0eb64d5c block: Add permissions to blk_new()
We want every user to be specific about the permissions it needs, so
we'll pass the initial permissions as parameters to blk_new(). A user
only needs to call blk_set_perm() if it wants to change the permissions
after the fact.

The permissions are stored in the BlockBackend and applied whenever a
BlockDriverState should be attached in blk_insert_bs().

This does not include actually choosing the right set of permissions
everywhere yet. Instead, the usual FIXME comment is added to each place
and will be addressed in individual patches.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Acked-by: Fam Zheng <famz@redhat.com>
2017-02-28 20:40:36 +01:00
..
client.c nbd: convert to use qio_channel_yield 2017-02-21 11:14:08 +00:00
common.c nbd: convert to use qio_channel_yield 2017-02-21 11:14:08 +00:00
Makefile.objs nbd: Split nbd.c 2016-01-15 18:58:02 +01:00
nbd-internal.h io: change the QIOTask callback signature 2017-01-23 15:32:18 +00:00
server.c block: Add permissions to blk_new() 2017-02-28 20:40:36 +01:00