block: Fix vpc initialization of the Dynamic Disk Header
authorCharles Arnold <carnold@suse.com>
Wed, 9 Nov 2011 16:32:25 +0000 (09:32 -0700)
committerKevin Wolf <kwolf@redhat.com>
Fri, 11 Nov 2011 13:02:58 +0000 (14:02 +0100)
commit2435af326910d86ca1970dfa96853c927cb5ea5a
tree432dd134df4d472859650287958aee7b95006bff
parent87f79a5e72e3df2f30ecb47e4fca901726b79b19
block: Fix vpc initialization of the Dynamic Disk Header

The Data Offset field in the Dynamic Disk Header is an 8 byte field.
Although the specification (2006-10-11) gives an example of initializing
only the first 4 bytes, images generated by Microsoft on Windows initialize
all 8 bytes.

Failure to initialize all 8 bytes results in errors from utilities
like Citrix's vhd-util which checks specifically for the proper Data
Offset field initialization.

Signed-off-by: Charles Arnold <carnold@suse.com>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vpc.c