]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Detect VMDK version 3 files
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 8 May 2017 09:05:09 +0000 (10:05 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 15 May 2017 11:09:04 +0000 (12:09 +0100)
The metadata libvirt cares about is identical for version 3
as for previous versions, so we merely need list the new
version number.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/util/virstoragefile.c

index 94a77ce862da5d183f6fb819f501bad584976a0a..b43acf67f1a53e8872f0ba7a0f86d58863a2cce4 100644 (file)
@@ -113,7 +113,7 @@ enum {
     BACKING_STORE_ERROR,
 };
 
-#define FILE_TYPE_VERSIONS_LAST 2
+#define FILE_TYPE_VERSIONS_LAST 3
 
 struct FileEncryptionInfo {
     int format; /* Encryption format to assign */
@@ -374,7 +374,7 @@ static struct FileTypeInfo const fileTypeInfo[] = {
     },
     [VIR_STORAGE_FILE_VMDK] = {
         0, "KDMV", NULL,
-        LV_LITTLE_ENDIAN, 4, 4, {1, 2},
+        LV_LITTLE_ENDIAN, 4, 4, {1, 2, 3},
         4+4+4, 8, 512, NULL, vmdk4GetBackingStore, NULL
     },
 };