提交 3213e369 编写于 作者: D Daniel P. Berrange

Detect VMDK version 3 files

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: NDaniel P. Berrange <berrange@redhat.com>
上级 aeda1b8c
...@@ -113,7 +113,7 @@ enum { ...@@ -113,7 +113,7 @@ enum {
BACKING_STORE_ERROR, BACKING_STORE_ERROR,
}; };
#define FILE_TYPE_VERSIONS_LAST 2 #define FILE_TYPE_VERSIONS_LAST 3
struct FileEncryptionInfo { struct FileEncryptionInfo {
int format; /* Encryption format to assign */ int format; /* Encryption format to assign */
...@@ -374,7 +374,7 @@ static struct FileTypeInfo const fileTypeInfo[] = { ...@@ -374,7 +374,7 @@ static struct FileTypeInfo const fileTypeInfo[] = {
}, },
[VIR_STORAGE_FILE_VMDK] = { [VIR_STORAGE_FILE_VMDK] = {
0, "KDMV", NULL, 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 4+4+4, 8, 512, NULL, vmdk4GetBackingStore, NULL
}, },
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册