qcow2.py: Add required padding for header extensions
commit8884dd1bbc5ce42cd657ffcbef3a477443468974
authorKevin Wolf <kwolf@redhat.com>
Tue, 25 Nov 2014 17:12:41 +0000 (25 18:12 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 10 Dec 2014 09:31:13 +0000 (10 10:31 +0100)
tree31f8ce06f9ea2d81c36517d03d41f517d658f956
parent2ebafc854d109ff09b66fb4dd62c2c53fc29754a
qcow2.py: Add required padding for header extensions

The qcow2 specification requires that the header extension data be
padded to round up the extension size to the next multiple of 8 bytes.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-id: 1416935562-7760-3-git-send-email-kwolf@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/qcow2.py