[pve-devel] [PATCH qemu-server v5 23/32] backup: bitmap action to human: lie about TPM state

Fiona Ebner f.ebner at proxmox.com
Fri Mar 21 14:48:43 CET 2025


The TPM state drive is newly attached each time, so it is fully
expected that a bitmap from last time would be missing.

Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
---

New in v5.

 PVE/VZDump/QemuServer.pm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/PVE/VZDump/QemuServer.pm b/PVE/VZDump/QemuServer.pm
index 068046ae..d296986a 100644
--- a/PVE/VZDump/QemuServer.pm
+++ b/PVE/VZDump/QemuServer.pm
@@ -317,6 +317,8 @@ my $bitmap_action_to_human = sub {
     } elsif ($action eq "invalid") {
 	return "existing bitmap was invalid and has been cleared";
     } elsif ($action eq "missing-recreated") {
+	# Lie about the TPM state, because it is newly attached each time.
+	return "created new" if $info->{drive} eq 'drive-tpmstate0-backup';
 	return "expected bitmap was missing and has been recreated";
     } else {
 	return "unknown";
-- 
2.39.5





More information about the pve-devel mailing list