diff options
| author | Paolo Bonzini | 2013-11-22 13:39:48 +0100 |
|---|---|---|
| committer | Stefan Hajnoczi | 2013-12-03 15:26:49 +0100 |
| commit | b8d71c09f31a9cae248d167dddc75c66d5135ff2 (patch) | |
| tree | 0495090149bcb5c9d160c06d3c9529d238148f66 /block | |
| parent | block: handle ENOTSUP from discard in generic code (diff) | |
| download | qemu-b8d71c09f31a9cae248d167dddc75c66d5135ff2.tar.gz qemu-b8d71c09f31a9cae248d167dddc75c66d5135ff2.tar.xz qemu-b8d71c09f31a9cae248d167dddc75c66d5135ff2.zip | |
block: make bdrv_co_do_write_zeroes stricter in producing aligned requests
Right now, bdrv_co_do_write_zeroes will only try to align the
beginning of the request. However, it is simpler for many
formats to expect the block layer to separate both the head *and*
the tail. This makes sure that the format's bdrv_co_write_zeroes
function will be called with aligned sector_num and nb_sectors for
the bulk of the request.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Peter Lieven <pl@kamp.de>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions
