]> git.proxmox.com Git - qemu-server.git/commitdiff
vzdump: do not log per disk dirty bitmap state for templates
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 21 Aug 2020 12:11:48 +0000 (14:11 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 21 Aug 2020 12:11:48 +0000 (14:11 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/VZDump/QemuServer.pm

index da874b914ee44c768f32640f1a6d713004f48c61..7297795b6cce61c44190c943c1bf7c098da0ab16 100644 (file)
@@ -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};