commit | ec746e10cb2e6276a8d2e036454792fe0674864a | [log] [tgz] |
---|---|---|
author | Kevin Wolf <kwolf@redhat.com> | Wed Dec 04 12:13:10 2013 +0100 |
committer | Kevin Wolf <kwolf@redhat.com> | Fri Jan 24 17:40:02 2014 +0100 |
tree | 2a78501412007a8a26021584a485758f10c999dd | |
parent | 65afd211c71fc91750d8a18f9604c1e57a5202fb [diff] |
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>