From 5749c3835030402a39738ff56ba427239b4f9f06 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Fri, 21 Aug 2020 14:11:48 +0200 Subject: [PATCH] vzdump: do not log per disk dirty bitmap state for templates Signed-off-by: Thomas Lamprecht --- PVE/VZDump/QemuServer.pm | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/PVE/VZDump/QemuServer.pm b/PVE/VZDump/QemuServer.pm index da874b9..7297795 100644 --- a/PVE/VZDump/QemuServer.pm +++ b/PVE/VZDump/QemuServer.pm @@ -337,14 +337,17 @@ my $query_backup_status_loop = sub { my $target = 0; my $last_reused = 0; my $has_query_bitmap = $qemu_support && $qemu_support->{'query-bitmap-info'}; + my $is_template = PVE::QemuConfig->is_template($self->{vmlist}->{$vmid}); if ($has_query_bitmap) { my $total = 0; my $bitmap_info = mon_cmd($vmid, 'query-pbs-bitmap-info'); - foreach my $info (sort { $a->{drive} cmp $b->{drive} } @$bitmap_info) { - my $text = $bitmap_action_to_human->($self, $info); - my $drive = $info->{drive}; - $drive =~ s/^drive-//; # for consistency - $self->loginfo("$drive: dirty-bitmap status: $text"); + for my $info (sort { $a->{drive} cmp $b->{drive} } @$bitmap_info) { + if (!$is_template) { + my $text = $bitmap_action_to_human->($self, $info); + my $drive = $info->{drive}; + $drive =~ s/^drive-//; # for consistency + $self->loginfo("$drive: dirty-bitmap status: $text"); + } $target += $info->{dirty}; $total += $info->{size}; $last_reused += $info->{size} - $info->{dirty}; -- 2.39.2