block: Move flag inheritance to bdrv_open_inherit()
Instead of letting every caller of bdrv_open() determine the right flags for its child node manually and pass them to the function, pass the parent node and the role of the newly opened child (like backing file, protocol layer, etc.). Signed-off-by:Kevin Wolf <kwolf@redhat.com> Reviewed-by:
Eric Blake <eblake@redhat.com> Reviewed-by:
Max Reitz <mreitz@redhat.com>
Showing
- block.c 61 additions, 13 deletionsblock.c
- block/blkdebug.c 1 addition, 1 deletionblock/blkdebug.c
- block/blkverify.c 2 additions, 2 deletionsblock/blkverify.c
- block/quorum.c 2 additions, 2 deletionsblock/quorum.c
- block/vmdk.c 2 additions, 3 deletionsblock/vmdk.c
- include/block/block.h 3 additions, 1 deletioninclude/block/block.h
- include/block/block_int.h 7 additions, 0 deletionsinclude/block/block_int.h
Loading
Please register or sign in to comment