feat(Backup): use vhd directory setting of remote (#6303)

This commit is contained in:
Florent BEAUCHAMP 2022-06-29 10:51:13 +02:00 committed by GitHub
parent 87e3e3ffe3
commit dfc2b5d88b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 1 deletions

View File

@ -291,7 +291,7 @@ class RemoteAdapter {
}
#useVhdDirectory() {
return this.handler.type === 's3'
return this.handler.useVhdDirectory()
}
#useAlias() {

View File

@ -424,6 +424,10 @@ export default class RemoteHandlerAbstract {
// Methods that can be implemented by inheriting classes
useVhdDirectory() {
return this._remote.useVhdDirectory ?? false
}
async _closeFile(fd) {
throw new Error('Not implemented')
}

View File

@ -525,4 +525,8 @@ export default class S3Handler extends RemoteHandlerAbstract {
}
async _closeFile(fd) {}
useVhdDirectory() {
return true
}
}

View File

@ -40,6 +40,7 @@
- @vates/event-listeners-manager patch
- @vates/read-chunk major
- @xen-orchestra/backups minor
- @xen-orchestra/fs minor
- @xen-orchestra/xapi minor
- vhd-lib minor
- xo-remote-parser minor