diff options
author | Eric Blake <eblake@redhat.com> | 2016-06-23 16:37:05 -0600 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2016-07-05 16:46:24 +0200 |
commit | cff86b38aca34c9cc5c6f8846cc1c5b3d181c376 (patch) | |
tree | a46c1066dd8715dd3a809efb2bb61e6a78e9b68c /crypto/block.c | |
parent | cfef6a45c7201c8219d819d792e5d99bbff32308 (diff) | |
download | qemu-cff86b38aca34c9cc5c6f8846cc1c5b3d181c376.tar.gz qemu-cff86b38aca34c9cc5c6f8846cc1c5b3d181c376.tar.bz2 qemu-cff86b38aca34c9cc5c6f8846cc1c5b3d181c376.zip |
block: Tighter assertions on bdrv_aligned_pwritev()
For symmetry with bdrv_aligned_preadv(), assert that the caller
really has aligned things properly. This requires adding an align
parameter, which is used now only in the new asserts, but will
come in handy in a later patch that adds auto-fragmentation to the
max transfer size, since that value need not always be a multiple
of the alignment, and therefore must be rounded down.
Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'crypto/block.c')
0 files changed, 0 insertions, 0 deletions