diff options
author | Max Reitz <mreitz@redhat.com> | 2014-09-30 21:31:28 +0200 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2014-10-04 19:18:17 +0100 |
commit | 9009b1963c5ed9bb826c8116e8b1d3aa94d47f85 (patch) | |
tree | f3b75384fbff376a1fe1525c4449a065cb06ece9 /block/qcow2.c | |
parent | 1b53eab270ee08e61e21c3fcc77e34c4b5484c30 (diff) | |
download | qemu-9009b1963c5ed9bb826c8116e8b1d3aa94d47f85.tar.gz qemu-9009b1963c5ed9bb826c8116e8b1d3aa94d47f85.tar.bz2 qemu-9009b1963c5ed9bb826c8116e8b1d3aa94d47f85.zip |
qapi: Add corrupt field to ImageInfoSpecificQCow2
Just like lazy-refcounts, this field will be present iff the qcow2
compat level is 1.1 (or probably any future revision).
As expected, this breaks some tests due to the new field present in
qemu-img info output; so fix their output accordingly.
Suggested-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 1412105489-7681-3-git-send-email-mreitz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'block/qcow2.c')
-rw-r--r-- | block/qcow2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/block/qcow2.c b/block/qcow2.c index 778fc1ec13..fb28493c02 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -2282,6 +2282,9 @@ static ImageInfoSpecific *qcow2_get_specific_info(BlockDriverState *bs) .lazy_refcounts = s->compatible_features & QCOW2_COMPAT_LAZY_REFCOUNTS, .has_lazy_refcounts = true, + .corrupt = s->incompatible_features & + QCOW2_INCOMPAT_CORRUPT, + .has_corrupt = true, }; } |