]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
Properly detect VMDK with internal version 2
authorMartin Kletzander <mkletzan@redhat.com>
Tue, 9 Jul 2013 13:16:34 +0000 (15:16 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Wed, 10 Jul 2013 08:17:18 +0000 (10:17 +0200)
Initially proposed as [1], but then changed to comment fix only.  VMDK
can have internal version set to 2 when there are few features added
which do not affect us.  Thanks to Jan's commit a1ee8e18 this can be
easily fixed by adding it to list of supported versions.

[1] http://www.redhat.com/archives/libvir-list/2013-June/msg00419.html

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

src/util/virstoragefile.c

index 27aa4febee8b0803e8cf615e06d0054e53dc4b37..23b46445e10ad6ac8df8c52e10cfd4b7b27e0829 100644 (file)
@@ -213,7 +213,7 @@ static struct FileTypeInfo const fileTypeInfo[] = {
     },
     [VIR_STORAGE_FILE_VMDK] = {
         0, "KDMV", NULL,
-        LV_LITTLE_ENDIAN, 4, {1},
+        LV_LITTLE_ENDIAN, 4, {1, 2},
         4+4+4, 8, 512, -1, vmdk4GetBackingStore, NULL
     },
     [VIR_STORAGE_FILE_VPC] = {