block: Use BDRV_O_NO_BACKING where appropriate
authorKevin Wolf <kwolf@redhat.com>
Thu, 28 Nov 2013 10:58:02 +0000 (11:58 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 29 Nov 2013 16:41:09 +0000 (17:41 +0100)
commitc9fbb99d41b05acf0d7b93deb2fcdbf9047c238e
treed69b04e2510ced9bc17efaa992ec78b79ab38280
parentf32f988c7778d0f1ff9c7e8d7547a354a7fdd3f6
block: Use BDRV_O_NO_BACKING where appropriate

If you open an image temporarily just because you want to check its size
or get it flushed, there's no real reason to open the whole backing file
chain.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Benoit Canet <benoit@irqsave.net>
block.c
block/qcow2.c
block/vmdk.c