diff options
author | Kevin Wolf <kwolf@redhat.com> | 2012-04-12 15:20:27 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-04-20 15:57:29 +0200 |
commit | cfcc4c62ffe37170cf4b0c9e7acbd2dbaa792598 (patch) | |
tree | f6af483388c4a6145529af709b559465c1b01d7e /block/qcow2.h | |
parent | 6377af48b0445e7ee50db6e0bd73a3a70098f5f4 (diff) |
qcow2: Support for feature table header extension
Instead of printing an ugly bitmask, qemu can now print a more helpful
string even for yet unknown features.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/qcow2.h')
-rw-r--r-- | block/qcow2.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/block/qcow2.h b/block/qcow2.h index df2bdfd0c6..2a982445a1 100644 --- a/block/qcow2.h +++ b/block/qcow2.h @@ -104,6 +104,18 @@ typedef struct Qcow2UnknownHeaderExtension { uint8_t data[]; } Qcow2UnknownHeaderExtension; +enum { + QCOW2_FEAT_TYPE_INCOMPATIBLE = 0, + QCOW2_FEAT_TYPE_COMPATIBLE = 1, + QCOW2_FEAT_TYPE_AUTOCLEAR = 2, +}; + +typedef struct Qcow2Feature { + uint8_t type; + uint8_t bit; + char name[46]; +} QEMU_PACKED Qcow2Feature; + typedef struct BDRVQcowState { int cluster_bits; int cluster_size; |