VMDK: add field BDRVVmdkState.desc_offset
commite1da9b2433f78c4de3bac8c2a97173c648d212c0
authorFam Zheng <famcool@gmail.com>
Tue, 12 Jul 2011 11:56:32 +0000 (12 19:56 +0800)
committerKevin Wolf <kwolf@redhat.com>
Tue, 19 Jul 2011 13:39:06 +0000 (19 15:39 +0200)
treea8912ef432f3ff1fe8a544fc592bfbea03f31be2
parentb4b3ab146c6d8a7ababc5760c9a0ef7cee78707e
VMDK: add field BDRVVmdkState.desc_offset

There are several occurrence of magic number 0x200 as the descriptor
offset within mono sparse image file. This is not the case for images
with separate descriptor file. So a field is added to BDRVVmdkState to
hold the correct value.

Signed-off-by: Fam Zheng <famcool@gmail.com>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vmdk.c