]> git.proxmox.com Git - qemu-server.git/commitdiff
vzdump: output sparseness again
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 20 Aug 2020 08:22:44 +0000 (10:22 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 20 Aug 2020 08:25:08 +0000 (10:25 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/VZDump/QemuServer.pm

index dd54d90dff317e742f1f2985f0b2415bab0aee0d..bc5c89a8383a2d9b1d8b9108f2db3aa56ccdc2e6 100644 (file)
@@ -400,6 +400,12 @@ my $query_backup_status_loop = sub {
     }
 
     my $duration = time() - $starttime;
+
+    if ($last_zero) {
+       my $zero_per = $last_target ? int(($last_zero * 100)/$last_target) : 0;
+       my $zero_h = bytes_to_human($last_zero, 2);
+       $self->loginfo("backup is sparse: $zero_h (${zero_per}%) total zero data");
+    }
     if ($transferred) {
        my $transferred_h = bytes_to_human($transferred, 2);
        if ($reused) {
@@ -415,12 +421,6 @@ my $query_backup_status_loop = sub {
        }
     }
 
-    if (!defined($pbs_features) && $last_zero) {
-       my $zero_per = $last_target ? int(($last_zero * 100)/$last_target) : 0;
-       my $zero_h = bytes_to_human($last_zero, 2);
-       $self->loginfo("Backup is sparse: ${zero_per}% ($zero_h) zero data");
-    }
-
     return {
        total => $last_total,
        reused => $reused,