qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] Small improvements to VMDK4 file handling
@ 2009-12-18 15:56 Richard W.M. Jones
  2009-12-18 15:57 ` [Qemu-devel] [PATCH 1/2] VMDK4: Parse the VMDK descriptor explicitly, improve handling of CIDs Richard W.M. Jones
  2009-12-18 15:58 ` [Qemu-devel] [PATCH 2/2] VMDK4: Parse and check the createType (VMDK file type) field Richard W.M. Jones
  0 siblings, 2 replies; 5+ messages in thread
From: Richard W.M. Jones @ 2009-12-18 15:56 UTC (permalink / raw)
  To: qemu-devel


We're tracing a bug in "qemu-img convert" where it will silently fail
to convert certain types of VMDK file.  The VMDK files produced by
VMWare vSphere / ESX 4.0, which have the VMDK subformat
"streamOptimized" are one notable case:

  https://bugzilla.redhat.com/show_bug.cgi?id=548723

These two patches certainly don't fix this, but they do at least
prevent "qemu-img convert" from silently failing.

Unfortunately to do this I had to look much more deeply into the VMDK
format than the current VMDK block driver does.  We have to parse the
VMDK4 plain text descriptor which is embedded in these binary files.

So the first patch adds the parsing and has the benefit of improving
how the CID and parentCID fields are read and updated.

The second patch parses the createType field from the descriptor, and
refuses to continue if it's not on a short whitelist of subformats
which we are likely to be able to parse.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-12-18 16:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-18 15:56 [Qemu-devel] [PATCH 0/2] Small improvements to VMDK4 file handling Richard W.M. Jones
2009-12-18 15:57 ` [Qemu-devel] [PATCH 1/2] VMDK4: Parse the VMDK descriptor explicitly, improve handling of CIDs Richard W.M. Jones
2009-12-18 16:06   ` Richard W.M. Jones
2009-12-18 15:58 ` [Qemu-devel] [PATCH 2/2] VMDK4: Parse and check the createType (VMDK file type) field Richard W.M. Jones
2009-12-18 16:07   ` Richard W.M. Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).