mirror of
https://github.com/vatesfr/xen-orchestra.git
synced 2026-11-09 17:06:13 -06:00
fix(xva): off by one
if last block is not already written we must write it, not the next bloxk
This commit is contained in:
committed by
Julien Fontanet
parent
4d24248ea2
commit
bc00551cb3
@@ -52,6 +52,6 @@ export default async function addDisk(pack, vhd, basePath) {
|
||||
}
|
||||
if (!written) {
|
||||
// last block must be present
|
||||
await writeBlock(pack, empty, formatBlockPath(basePath, counter))
|
||||
await writeBlock(pack, empty, formatBlockPath(basePath, counter - 1))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user