feat(backup-archive): add method to get the root of a chain

This commit is contained in:
Florent BEAUCHAMP
2026-07-24 09:53:31 -04:00
committed by Florent BEAUCHAMP
parent 3613b30aa1
commit f8df78c03d

View File

@@ -312,4 +312,12 @@ export class RemoteVhdDiskChain extends RemoteDisk {
async clean(opts = {}) {
throw new Error(`Can't clean a disk chain`)
}
/**
*
* @returns {RemoteVhdDisk|undefined}
*/
getRootDisk() {
return this.#disks[0]
}
}