block: Create bdrv_inherited_flags()
authorKevin Wolf <kwolf@redhat.com>
Fri, 11 Apr 2014 19:29:52 +0000 (21:29 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 30 Apr 2014 09:05:00 +0000 (11:05 +0200)
commit0b50cc885381fc6794590dbbb40665e32f9292f8
tree4a5308890ef5cc2f8577fa583d080fca320e4eb8
parentcffb12051a26e5494ed009c99db7858b2aab7099
block: Create bdrv_inherited_flags()

Instead of having bdrv_open_flags() as a function that creates flags for
several unrelated places and then adding open-coded flags on top, create
a new function that derives the flags for bs->file from the flags for bs.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
block.c