feat(xapi): implement Change Block Tracking function

This commit is contained in:
Florent Beauchamp
2024-02-09 15:21:21 +00:00
parent ee0fd9ab8e
commit ff57bc2a0b
2 changed files with 16 additions and 1 deletions

View File

@@ -83,6 +83,21 @@ class Vdi {
}
}
// return an buffer with 0/1 bit, showing if the 64KB block corresponding
// in the raw vdi has changed
async listChangedBlock(ref, baseRef){
const encoded = await this.call('VDI.list_changed_blocks', ref, baseRef)
const buf = Buffer.from(encoded, 'base64')
return buf
}
async enableChangeBlockTracking(ref){
return this.call('VDI. enable_cbt ', ref)
}
async disableChangeBlockTracking(ref){
return this.call('VDI. disable_cbt ', ref)
}
async exportContent(
ref,
{ baseRef, cancelToken = CancelToken.none, format, nbdConcurrency = 1, preferNbd = this._preferNbd }

View File

@@ -42,7 +42,7 @@
- @xen-orchestra/backups patch
- @xen-orchestra/fs patch
- @xen-orchestra/xapi patch
- @xen-orchestra/xapi minor
- @vates/nbd-client minor
- vhd-lib patch
- xo-server minor