]> git.proxmox.com Git - mirror_qemu.git/commit - block.c
block: Detect unaligned length in bdrv_qiov_is_aligned()
authorKevin Wolf <kwolf@redhat.com>
Thu, 5 Dec 2013 12:01:46 +0000 (13:01 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 24 Jan 2014 16:40:01 +0000 (17:40 +0100)
commit1ff735bdc417945bc6df1857861b127644b3f461
treede2c1a0a320ef717d2076de32969d5ecf070c9dd
parente5354657a626b325c31888f33de88ac6d39e2fcb
block: Detect unaligned length in bdrv_qiov_is_aligned()

For an O_DIRECT request to succeed, it's not only necessary that all
base addresses in the qiov are aligned, but also that each length in it
is aligned.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
block.c