@xen-orchestra/backups 0.43.1 → 0.43.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -39,10 +39,12 @@ export const FullXapi = class FullXapiVmBackupRunner extends AbstractXapi {
|
|
|
39
39
|
const vdis = await exportedVm.$getDisks()
|
|
40
40
|
let maxStreamLength = 1024 * 1024 // Ovf file and tar headers are a few KB, let's stay safe
|
|
41
41
|
for (const vdiRef of vdis) {
|
|
42
|
-
const vdi = await this._xapi.getRecord(vdiRef)
|
|
43
|
-
|
|
44
|
-
// the
|
|
45
|
-
|
|
42
|
+
const vdi = await this._xapi.getRecord('VDI', vdiRef)
|
|
43
|
+
|
|
44
|
+
// the size a of fully allocated vdi will be virtual_size exaclty, it's a gross over evaluation
|
|
45
|
+
// of the real stream size in general, since a disk is never completly full
|
|
46
|
+
// vdi.physical_size seems to underevaluate a lot the real disk usage of a VDI, as of 2023-10-30
|
|
47
|
+
maxStreamLength += vdi.virtual_size
|
|
46
48
|
}
|
|
47
49
|
|
|
48
50
|
const sizeContainer = watchStreamSize(stream)
|