block: Introduce BDRV_O_NO_BACKING
authorKevin Wolf <kwolf@redhat.com>
Tue, 12 Jan 2010 11:55:16 +0000 (12:55 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 13 Jan 2010 23:14:15 +0000 (17:14 -0600)
commit22d3fbed860af2d3a3ec819b1cdd733297a622b5
treedc2853143207a97ea7702ba242c159ac9ec67f2b
parent482ba3d06b46fe13801e3d33a186eff66144427c
block: Introduce BDRV_O_NO_BACKING

If an image references a backing file that doesn't exist, qemu-img info fails
to open this image. Exactly in this case the info would be valuable, though:
the user might want to find out which file is missing.

This patch introduces a BDRV_O_NO_BACKING flag to ignore the backing file when
opening the image. qemu-img info is the first user and provides info now even
if the backing file is invalid.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
block.c
block.h
qemu-img.c