summaryrefslogtreecommitdiffstats
path: root/qemu-img.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2013-12-04 12:13:10 +0100
committerKevin Wolf <kwolf@redhat.com>2014-01-24 17:40:02 +0100
commitec746e10cb2e6276a8d2e036454792fe0674864a (patch)
tree2a78501412007a8a26021584a485758f10c999dd /qemu-img.c
parent65afd211c71fc91750d8a18f9604c1e57a5202fb (diff)
downloadhqemu-ec746e10cb2e6276a8d2e036454792fe0674864a.zip
hqemu-ec746e10cb2e6276a8d2e036454792fe0674864a.tar.gz
block: Make zero-after-EOF work with larger alignment
Odd file sizes could make bdrv_aligned_preadv() shorten the request in non-aligned ways. Fix it by rounding to the required alignment instead of 512 bytes. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Benoit Canet <benoit@irqsave.net>
Diffstat (limited to 'qemu-img.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud