Skip to content

block/vmdk: fixes for stream optimized disks

Sanne Raymaekers qemu-devel 3 versions – Applied

Status from this message: Thanks, applied to the block branch (and meanwhile merged into master as

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 1 replyApplied
  2. v23 patches 0 repliesSuperseded
  3. v13 patches 4 repliesSuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/3block/vmdk: align stream optimized data grains on 512 byte chunksblock/vmdk.c+18 -90 replies
2/3block/vmdk: skip RGD for stream optimized disksblock/vmdk.c+30 -160 replies
3/3block/vmdk: add eos marker for stream optimized disksblock/vmdk.c+28 -200 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/3] block/vmdk: fixes for stream optimized disks

The stream optimized disks produced by qemu-img did not quite adhere to the specification. This could trip up other software consuming these disks. The goal of these patches is to get the VMDKs produced by QEMU to better match the specification, the Virtual Disk Format 5.0 Technical Note.

For instance, when packaging the VMDK up in an OVA archive (a ustar archive containing an OVF, a manifest and a VMDK), errors occur when importing that OVA into VMWare Workstation. Specifically the digest in the manifest does not match the digest of the VMDK, because Workstation reads (and parses) the disk contents and then makes a digest, rather than making a digest of the whole VMDK file. Extra null bytes at the very end will trip it up, as they are ignored in the digest made by Workstation, but are included in the digest produced by something like shasum.

Note that stream optimized disks, while not adhering to the specification fully, are still useable by VMWare tooling, with some workarounds where needed. For instance, VSphere does not have the same issue as Workstation.

V3 cleans up some formatting and makes the commit messages clearer.

Sanne Raymaekers (3):
block/vmdk: align stream optimized data grains on 512 byte chunks block/vmdk: skip RGD for stream optimized disks block/vmdk: add eos marker for stream optimized disks

 block/vmdk.c | 121 ++++++++++++++++++++++++++++++++-------------------
 1 file changed, 76 insertions(+), 45 deletions(-)
Signature · 1 line
2.55.0