]> git.ipfire.org Git - thirdparty/qemu.git/commit - block.c
block: Move flag inheritance to bdrv_open_inherit()
authorKevin Wolf <kwolf@redhat.com>
Wed, 8 Apr 2015 11:43:47 +0000 (13:43 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 12 Jun 2015 15:04:59 +0000 (17:04 +0200)
commitf3930ed0bb1945b59da8e591072b5c79606d0760
treebbc19fff220e6e2291622b755259549adf733a17
parent18edf289a8951f3a48caff3b5fe17f2d414c2924
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>
block.c
block/blkdebug.c
block/blkverify.c
block/quorum.c
block/vmdk.c
include/block/block.h
include/block/block_int.h