qcow2-bitmap: initialize bitmap directory alignment
commit6388903e7cc9b6528934a083e81f086322c24c86
authorAndrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Mon, 27 May 2019 12:52:01 +0000 (27 15:52 +0300)
committerMax Reitz <mreitz@redhat.com>
Tue, 28 May 2019 18:30:55 +0000 (28 20:30 +0200)
tree36ce8b33f9ed24e47575215bc83a87ee72d55d89
parentc8bb23cbdbe32f5c326365e0a82e1b0e68cdcd8a
qcow2-bitmap: initialize bitmap directory alignment

Valgrind detects multiple issues in QEMU iotests when the memory is
used without being initialized. Valgrind may dump lots of unnecessary
reports what makes the memory issue analysis harder. Particularly,
that is true for the aligned bitmap directory and can be seen while
running the iotest #169. Padding the aligned space with zeros eases
the pain.

Signed-off-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Message-id: 1558961521-131620-1-git-send-email-andrey.shinkevich@virtuozzo.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/qcow2-bitmap.c