]> git.proxmox.com Git - mirror_qemu.git/commit
vmdk: Support version=3 in VMDK descriptor files
authorSam Eiderman <shmuel.eiderman@oracle.com>
Thu, 14 Mar 2019 14:14:37 +0000 (16:14 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 19 Mar 2019 14:49:29 +0000 (15:49 +0100)
commitb69864e5a8c7b762e94d1bfd170b8774b28ab993
treea075994e4d0f9bf03ac791735e21cac95b841b4e
parent1f46ab2e526d1fc0716c76dc78f2180fd68b09c1
vmdk: Support version=3 in VMDK descriptor files

Commit 509d39aa22909c0ed1aabf896865f19c81fb38a1 added support for read
only VMDKs of version 3.

This commit fixes the probe function to correctly handle descriptors of
version 3.

This commit has two effects:
    1. We no longer need to supply '-f vmdk' when pointing to descriptor
       files of version 3 in qemu/qemu-img command line arguments.
    2. This fixes the scenario where a VMDK points to a parent version 3
       descriptor file which is being probed as "raw" instead of "vmdk".

Reviewed-by: Arbel Moshe <arbel.moshe@oracle.com>
Reviewed-by: Mark Kanda <mark.kanda@oracle.com>
Signed-off-by: Shmuel Eiderman <shmuel.eiderman@oracle.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vmdk.c