]> git.proxmox.com Git - mirror_qemu.git/commit - block/qcow2-bitmap.c
qcow2: Add list of bitmaps to ImageInfoSpecificQCow2
authorAndrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Fri, 8 Feb 2019 15:06:07 +0000 (18:06 +0300)
committerEric Blake <eblake@redhat.com>
Mon, 11 Feb 2019 20:35:43 +0000 (14:35 -0600)
commitb8968c875f4030dd6924d6971bb3d92dfa3d2f65
tree2faef1ceb11b64be4ade3fb50a4e6e34bbe7afc5
parent1bf6e9ca9234e1dbcaa18baa06eca9d55cc2dbbb
qcow2: Add list of bitmaps to ImageInfoSpecificQCow2

In the 'Format specific information' section of the 'qemu-img info'
command output, the supplemental information about existing QCOW2
bitmaps will be shown, such as a bitmap name, flags and granularity:

image: /vz/vmprivate/VM1/harddisk.hdd
file format: qcow2
virtual size: 64G (68719476736 bytes)
disk size: 3.0M
cluster_size: 1048576
Format specific information:
    compat: 1.1
    lazy refcounts: true
    bitmaps:
        [0]:
            flags:
                [0]: in-use
                [1]: auto
            name: back-up1
            granularity: 65536
        [1]:
            flags:
                [0]: in-use
                [1]: auto
            name: back-up2
            granularity: 65536
    refcount bits: 16
    corrupt: false

Signed-off-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <1549638368-530182-3-git-send-email-andrey.shinkevich@virtuozzo.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
block/qcow2-bitmap.c
block/qcow2.c
block/qcow2.h
qapi/block-core.json