You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a8fddbf
Browse filesBrowse the repository at this point in the historyBrowse files
nasbackup: carry the backup method separately from the mode
The RBD path overloaded ChainDecision.mode with rbd-full and rbd-incremental,
the same way the content-based path upstream overloaded it with content-full
and content-incremental. Split the two concerns as that path already did: mode
stays full or incremental, and a new method field says how the backup is taken
-- qcow2 (push mode with dirty bitmaps) or rbd (Ceph-native, anchored on an rbd
snapshot and exported with rbd export-diff).
TakeBackupCommand gets a method field and nasbackup.sh a --method option. Both
default to qcow2 when absent, so a management server that does not send a method
keeps working against an upgraded agent. legacy-full is unchanged: rewriting it
as full plus a "none" method would break incremental-disabled backups on agents
that have not been upgraded yet.
CHAIN_FORMAT stays as it is. The method says how a backup is taken and lives
only for the duration of the request; the chain format is persisted and says
what is on the repository, which is what restore and delete read later. The two
coincide for the rbd method today but answer different questions.
This mirrors c144d09 from #14194, which
introduced the method for the content path and named an RBD diff as the next
one to adopt it. Kept as close to that commit as the branch allows so the two
merge cleanly: this branch carries the RBD path but not the content one, so the
METHOD_CONTENT token is defined without a user here.
Copy file name to clipboardExpand all lines: plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtTakeBackupCommandWrapper.java
+40-18Lines changed: 40 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -52,11 +52,13 @@ public class LibvirtTakeBackupCommandWrapper extends CommandWrapper<TakeBackupCo
52
52
// Incremental feature disabled: plain full backup with no QEMU bitmap/checkpoint and no
0 commit comments