mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2025-01-07 17:17:57 +03:00
vzdump: do not log per disk dirty bitmap state for templates
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
4ef13a7f9a
commit
5749c38350
@ -337,14 +337,17 @@ my $query_backup_status_loop = sub {
|
|||||||
my $target = 0;
|
my $target = 0;
|
||||||
my $last_reused = 0;
|
my $last_reused = 0;
|
||||||
my $has_query_bitmap = $qemu_support && $qemu_support->{'query-bitmap-info'};
|
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) {
|
if ($has_query_bitmap) {
|
||||||
my $total = 0;
|
my $total = 0;
|
||||||
my $bitmap_info = mon_cmd($vmid, 'query-pbs-bitmap-info');
|
my $bitmap_info = mon_cmd($vmid, 'query-pbs-bitmap-info');
|
||||||
foreach my $info (sort { $a->{drive} cmp $b->{drive} } @$bitmap_info) {
|
for my $info (sort { $a->{drive} cmp $b->{drive} } @$bitmap_info) {
|
||||||
my $text = $bitmap_action_to_human->($self, $info);
|
if (!$is_template) {
|
||||||
my $drive = $info->{drive};
|
my $text = $bitmap_action_to_human->($self, $info);
|
||||||
$drive =~ s/^drive-//; # for consistency
|
my $drive = $info->{drive};
|
||||||
$self->loginfo("$drive: dirty-bitmap status: $text");
|
$drive =~ s/^drive-//; # for consistency
|
||||||
|
$self->loginfo("$drive: dirty-bitmap status: $text");
|
||||||
|
}
|
||||||
$target += $info->{dirty};
|
$target += $info->{dirty};
|
||||||
$total += $info->{size};
|
$total += $info->{size};
|
||||||
$last_reused += $info->{size} - $info->{dirty};
|
$last_reused += $info->{size} - $info->{dirty};
|
||||||
|
Loading…
Reference in New Issue
Block a user