qemu-e2k/block
Denis V. Lunev f13ce1be35 block: fix alignment calculations in bdrv_co_do_zero_pwritev
tail_padding_bytes is calculated wrong. F.e. for
    offset = 0
    bytes = 2048
    align = 512
we will have tail_padding_bytes = 512 which is definitely wrong. The patch
fixes that arithmetics.

Fortunately this problem is harmless, we will have 1 extra allocation and
free thus there is no need to put this into stable. The problem is here
from the very beginning.

Signed-off-by: Denis V. Lunev <den@openvz.org>
CC: Stefan Hajnoczi <stefanha@redhat.com>
CC: Fam Zheng <famz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2017-04-27 16:24:01 +02:00
..
accounting.c
backup.c
blkdebug.c block: Do not unref bs->file on error in BD's open 2017-04-27 16:12:13 +02:00
blkreplay.c block: Do not unref bs->file on error in BD's open 2017-04-27 16:12:13 +02:00
blkverify.c block: Do not unref bs->file on error in BD's open 2017-04-27 16:12:13 +02:00
block-backend.c block: Constify data passed by pointer to blk_name 2017-04-27 15:39:49 +02:00
bochs.c block: do not set BDS read_only if copy_on_read enabled 2017-04-24 15:09:33 -04:00
cloop.c block: do not set BDS read_only if copy_on_read enabled 2017-04-24 15:09:33 -04:00
commit.c commit: Set commit_top_bs->total_sectors 2017-04-07 14:44:05 +02:00
crypto.c crypto: Make errp the last parameter of functions 2017-04-24 09:13:22 +02:00
curl.c block/curl: Check protocol prefix 2017-03-31 15:53:22 -04:00
dirty-bitmap.c
dmg-bz2.c
dmg.c block: do not set BDS read_only if copy_on_read enabled 2017-04-24 15:09:33 -04:00
dmg.h
file-posix.c file-posix: Remove unnecessary includes 2017-04-27 15:39:49 +02:00
file-win32.c file-win32: Remove unnecessary include 2017-04-27 15:39:49 +02:00
gluster.c qapi-schema: SocketAddressFlat variants 'vsock' and 'fd' 2017-04-03 17:11:39 +02:00
io.c block: fix alignment calculations in bdrv_co_do_zero_pwritev 2017-04-27 16:24:01 +02:00
iscsi-opts.c
iscsi.c iscsi: Fix iscsi_create 2017-04-11 15:33:00 +02:00
linux-aio.c
Makefile.objs block/vxhs.c: Add support for a new block device type called "vxhs" 2017-04-24 15:08:42 -04:00
mirror.c block: Make errp the last parameter of commit_active_start 2017-04-24 09:13:44 +02:00
nbd-client.c
nbd-client.h
nbd.c * MemoryRegionCache revert 2017-04-04 11:40:55 +01:00
nfs.c nfs: Make errp the last parameter of nfs_client_open 2017-04-24 09:13:44 +02:00
null.c
parallels.c block/parallels: Avoid overflows 2017-04-03 17:11:40 +02:00
qapi.c
qcow2-cache.c
qcow2-cluster.c qcow2: Discard unaligned tail when wiping image 2017-04-03 17:11:40 +02:00
qcow2-refcount.c
qcow2-snapshot.c
qcow2.c
qcow2.h
qcow.c
qed-check.c
qed-cluster.c
qed-gencb.c
qed-l2-cache.c
qed-table.c
qed.c
qed.h
quorum.c
raw-format.c
rbd.c block/rbd: Add support for reopen() 2017-04-24 15:09:33 -04:00
replication.c block: Make errp the last parameter of commit_active_start 2017-04-24 09:13:44 +02:00
sheepdog.c socket: Make errp the last parameter of socket_connect 2017-04-24 09:12:59 +02:00
snapshot.c block: pass the right options for BlockDriver.bdrv_open() 2017-04-11 15:33:00 +02:00
ssh.c socket: Make errp the last parameter of inet_connect_saddr 2017-04-24 09:12:59 +02:00
stream.c
throttle-groups.c
trace-events block/vxhs.c: Add support for a new block device type called "vxhs" 2017-04-24 15:08:42 -04:00
vdi.c
vhdx-endian.c
vhdx-log.c
vhdx.c
vhdx.h
vmdk.c
vpc.c
vvfat.c block: do not set BDS read_only if copy_on_read enabled 2017-04-24 15:09:33 -04:00
vxhs.c block/vxhs.c: Add support for a new block device type called "vxhs" 2017-04-24 15:08:42 -04:00
win32-aio.c
write-threshold.c