OSDN Git Service

qemu-img: Make MapEntry a QAPI struct
authorFam Zheng <famz@redhat.com>
Tue, 26 Jan 2016 03:59:02 +0000 (11:59 +0800)
committerMax Reitz <mreitz@redhat.com>
Tue, 2 Feb 2016 16:50:48 +0000 (17:50 +0100)
commit16b0d555861b732c1dd76a986697214de1d774d5
tree332c9d4b5d8bdd0a4907b09e457a43e39c7017db
parent9e4303400801e62e8e357decdb487834582459e8
qemu-img: Make MapEntry a QAPI struct

The "flags" bit mask is expanded to two booleans, "data" and "zero";
"bs" is replaced with "filename" string.

Refactor the merge conditions in img_map() into entry_mergeable().

Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Message-id: 1453780743-16806-16-git-send-email-famz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
qapi/block-core.json
qemu-img.c