summaryrefslogtreecommitdiffstats
path: root/blockdev.c
diff options
context:
space:
mode:
authorJohn Snow2019-07-29 22:35:55 +0200
committerJohn Snow2019-08-16 22:28:03 +0200
commitdba8700f16ebda0632977c303f66021407971081 (patch)
treeed2c03fca3fa636d2f0ee420934ae082d9c9a448 /blockdev.c
parentblock/backup: centralize copy_bitmap initialization (diff)
downloadqemu-dba8700f16ebda0632977c303f66021407971081.tar.gz
qemu-dba8700f16ebda0632977c303f66021407971081.tar.xz
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 'blockdev.c')
0 files changed, 0 insertions, 0 deletions