summary refs log tree commit diff stats
path: root/hw/core/generic-loader.c
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2019-07-29 16:35:55 -0400
committerJohn Snow <jsnow@redhat.com>2019-08-16 16:28:03 -0400
commitdba8700f16ebda0632977c303f66021407971081 (patch)
treeed2c03fca3fa636d2f0ee420934ae082d9c9a448 /hw/core/generic-loader.c
parent141cdcdf84a07c8f23f8b1c4e3c5ebb0669f7616 (diff)
downloadfocaccia-qemu-dba8700f16ebda0632977c303f66021407971081.tar.gz
focaccia-qemu-dba8700f16ebda0632977c303f66021407971081.zip
block/backup: add backup_is_cluster_allocated
Modify bdrv_is_unallocated_range to utilize the pnum return from
bdrv_is_allocated, and in the process change the semantics from
"is unallocated" to "is allocated."

Optionally returns a full number of clusters that share the same
allocation status.

This will be used to carefully toggle bits in the bitmap for sync=top
initialization in the following commits.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-id: 20190716000117.25219-9-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'hw/core/generic-loader.c')
0 files changed, 0 insertions, 0 deletions