@xen-orchestra/backups 0.18.1 → 0.18.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.
- package/RemoteAdapter.js +2 -2
- package/_cleanVm.js +5 -0
- package/package.json +1 -1
package/RemoteAdapter.js
CHANGED
|
@@ -203,8 +203,8 @@ class RemoteAdapter {
|
|
|
203
203
|
|
|
204
204
|
const isVhdDirectory = vhd instanceof VhdDirectory
|
|
205
205
|
return isVhdDirectory
|
|
206
|
-
? this.#useVhdDirectory && this.#getCompressionType() === vhd.compressionType
|
|
207
|
-
: !this.#useVhdDirectory
|
|
206
|
+
? this.#useVhdDirectory() && this.#getCompressionType() === vhd.compressionType
|
|
207
|
+
: !this.#useVhdDirectory()
|
|
208
208
|
})
|
|
209
209
|
}
|
|
210
210
|
|
package/_cleanVm.js
CHANGED
|
@@ -408,6 +408,11 @@ exports.cleanVm = async function cleanVm(
|
|
|
408
408
|
const linkedVhds = Object.keys(vhds).map(key => resolve('/', vmDir, vhds[key]))
|
|
409
409
|
fileSystemSize = await computeVhdsSize(handler, linkedVhds)
|
|
410
410
|
|
|
411
|
+
// the size is not computed in some cases (e.g. VhdDirectory)
|
|
412
|
+
if (fileSystemSize === undefined) {
|
|
413
|
+
return
|
|
414
|
+
}
|
|
415
|
+
|
|
411
416
|
// don't warn if the size has changed after a merge
|
|
412
417
|
if (!merged && fileSystemSize !== size) {
|
|
413
418
|
onLog(`incorrect size in metadata: ${size ?? 'none'} instead of ${fileSystemSize}`)
|