Skip to content

Commit

Permalink
fix(xo-server): use the right limit for vdi size during import
Browse files Browse the repository at this point in the history
  • Loading branch information
fbeauchamp committed Apr 17, 2024
1 parent acc7b3a commit 164985a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion @xen-orchestra/vmware-explorer/parsers/vmdk.mjs
Expand Up @@ -38,7 +38,7 @@ export default function parseVmdk(raw) {
fileName: descriptor.extent.name,
parentId: descriptor.parentcid,
parentFileName: descriptor.parentfilenamehint,
vmdFormat: descriptor.extent.type,
vmdkFormat: descriptor.extent.type,
nameLabel: descriptor.extent.name,
}
}
Expand Down
4 changes: 2 additions & 2 deletions packages/xo-server/src/xo-mixins/vmware/buildChainByNode.mjs
Expand Up @@ -15,8 +15,8 @@ export function buildDiskChainByNode(disks, snapshots) {
chain.push(disks)

for (const disk of chain) {
if (disk.capacity > 2 * 1024 * 1024 * 1024 * 1024) {
/* 2TO */
if (disk.capacity > 2088960 * 1024 * 1024) {
/* 2TB - 8 MB is the maximum for smapi v1 */
throw new Error("Can't migrate disks larger than 2TiB")
}
}
Expand Down

0 comments on commit 164985a

Please sign in to comment.