vhdx: Fix zero-fill iov length
commitd1a126c53ddc563b7b731cee013e0362f7a5f22f
authorKevin Wolf <kwolf@redhat.com>
Tue, 14 Apr 2015 14:36:16 +0000 (14 16:36 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 28 Apr 2015 13:36:09 +0000 (28 15:36 +0200)
tree708cf6013830ae7aafb5971bcf2dff988f90e182
parent8eedfbd4a50299f03b3630659c34ad1b01f69370
vhdx: Fix zero-fill iov length

Fix the length of the zero-fill for the back, which was accidentally
using the same value as for the front. This is caught by qemu-iotests
033.

For consistency, change the code for the front as well to use the length
stored in the iov (it is the same value, copied four lines above).

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Acked-by: Jeff Cody <jcody@redhat.com>
block/vhdx.c