On Mon, Feb 27, 2012 at 4:27 PM, Kevin Wolf <kw...@redhat.com> wrote:
> The spec says that the length of extensions is padded to 8 bytes, not
> the offset. Currently this is the same because the header size is a
> multiple of 8, so this is only about compatibility with future changes
> to the header size.
>
> While touching it, move the calculation to a common place instead of
> duplicating it for each header extension type.
>
> Signed-off-by: Kevin Wolf <kw...@redhat.com>
> ---
>  block/qcow2.c |    5 ++---
>  1 files changed, 2 insertions(+), 3 deletions(-)

Reviewed-by: Stefan Hajnoczi <stefa...@linux.vnet.ibm.com>

Reply via email to