summaryrefslogtreecommitdiffstats
path: root/linux-user/linux_loop.h
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy2019-04-29 11:08:40 +0200
committerMax Reitz2019-05-28 20:30:55 +0200
commit9eb5a248f3e50c1f034bc6ff4b2f25c8c56515a5 (patch)
tree381b2781f2903bda5ba6df9ee76b941dc3adaa75 /linux-user/linux_loop.h
parentblock/backup: move to copy_bitmap with granularity (diff)
downloadqemu-9eb5a248f3e50c1f034bc6ff4b2f25c8c56515a5.tar.gz
qemu-9eb5a248f3e50c1f034bc6ff4b2f25c8c56515a5.tar.xz
qemu-9eb5a248f3e50c1f034bc6ff4b2f25c8c56515a5.zip
block/backup: refactor and tolerate unallocated cluster skipping
Split allocation checking to separate function and reduce nesting. Consider bdrv_is_allocated() fail as allocated area, as copying more than needed is not wrong (and we do it anyway) and seems better than fail the whole job. And, most probably we will fail on the next read, if there are real problem with source. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Message-id: 20190429090842.57910-4-vsementsov@virtuozzo.com Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'linux-user/linux_loop.h')
0 files changed, 0 insertions, 0 deletions