aboutsummaryrefslogtreecommitdiff
path: root/block/nbd-client.c
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2016-05-25 21:48:46 -0600
committerKevin Wolf <kwolf@redhat.com>2016-06-08 10:21:08 +0200
commitba142846b0f608c433e71d61efc6467c7b367dbf (patch)
tree59656190a57f5c912c211ebf054076e72dd477d9 /block/nbd-client.c
parent443668ca408cdb7f01e1a70a58518bb100c3e9d1 (diff)
downloadqemu-ba142846b0f608c433e71d61efc6467c7b367dbf.zip
qemu-ba142846b0f608c433e71d61efc6467c7b367dbf.tar.gz
qemu-ba142846b0f608c433e71d61efc6467c7b367dbf.tar.bz2
qcow2: simplify logic in qcow2_co_write_zeroes
Unaligned requests will occupy only one cluster. This is true since the previous commit. Simplify the code taking this consideration into account. In other words, the caller is now buggy if it ever passes us an unaligned request that crosses cluster boundaries (the only requests that can cross boundaries will be aligned). There are no other changes so far. Signed-off-by: Denis V. Lunev <den@openvz.org> Reviewed-by: Eric Blake <eblake@redhat.com> CC: Eric Blake <eblake@redhat.com> CC: Kevin Wolf <kwolf@redhat.com> Message-Id: <1463476543-3087-3-git-send-email-den@openvz.org> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/nbd-client.c')
0 files changed, 0 insertions, 0 deletions