diff options
author | Kevin Wolf <kwolf@redhat.com> | 2010-01-12 12:55:16 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-01-13 17:14:15 -0600 |
commit | b783e409bf17b92f4af8dc5d6bd040d0092f33e0 (patch) | |
tree | dc2853143207a97ea7702ba242c159ac9ec67f2b /block.h | |
parent | 8f0056b763fec6a47fecc9908127c16b407e6c4d (diff) | |
download | qemu-b783e409bf17b92f4af8dc5d6bd040d0092f33e0.zip qemu-b783e409bf17b92f4af8dc5d6bd040d0092f33e0.tar.gz qemu-b783e409bf17b92f4af8dc5d6bd040d0092f33e0.tar.bz2 |
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>
Diffstat (limited to 'block.h')
-rw-r--r-- | block.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -39,6 +39,7 @@ typedef struct QEMUSnapshotInfo { #define BDRV_O_NOCACHE 0x0020 /* do not use the host page cache */ #define BDRV_O_CACHE_WB 0x0040 /* use write-back caching */ #define BDRV_O_NATIVE_AIO 0x0080 /* use native AIO instead of the thread pool */ +#define BDRV_O_NO_BACKING 0x0100 /* don't open the backing file */ #define BDRV_O_CACHE_MASK (BDRV_O_NOCACHE | BDRV_O_CACHE_WB) |