Comment 1 for bug 1075252

Revision history for this message
Robert Hubbard (hubbardmeister) wrote :

Duplicate - Same issue related to header/footer - When does the code fix show up in the git release train ?

bug 907063 .
Read the VMDK 5.X release doc on format for VMDK. The files im using are created from Vsphere 5.X and are using a VMDK verion of 3.
Virtual Disk Format 5.0 - VMware
www.vmware.com/support/.../vmdk_50_technote.pdf?src=vm...
File Format: PDF/Adobe Acrobat - Quick View
Dec 20, 2011 – The document describes the virtual machine disk (VMDK) format and ... VMware designed the VMDK (virtual machine disk) format to mimic the ...

Fields look consistent with description in the VMDK 5.X doc and used that struct as referene(hacked patch attached for reference
)
First pass at Header:
gdb) p/x header
$1 = {version = 0x3, flags = 0x30001, capacity = 0x400000, granularity = 0x80, desc_offset = 0x1,
  desc_size = 0x1, num_gtes_per_gte = 0x200, rgd_offset = 0x0, gd_offset = 0xffffffffffffffff,
  grain_offset = 0x80, uncleanshutdown = 0x0, singlendlinechar = 0xa, nonendlinechar = 0x20,
  doublendlinechar1 = 0xd, doublendlinechar2 = 0xa, compressAlgorithm = 0x1, pad = {
    0x0 <repeats 433 times>}}

Now the footer:
(gdb) p/x header
$2 = {version = 0x3, flags = 0x30001, capacity = 0x400000, granularity = 0x80, desc_offset = 0x1,
  desc_size = 0x1, num_gtes_per_gte = 0x200, rgd_offset = 0x0, gd_offset = 0x68304,
  grain_offset = 0x80, uncleanshutdown = 0x0, singlendlinechar = 0xa, nonendlinechar = 0x20,
  doublendlinechar1 = 0xd, doublendlinechar2 = 0xa, compressAlgorithm = 0x1, pad = {
    0x0 <repeats 433 times>}}