mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-06-14 15:54:08 +00:00
vzdump: output sparseness again
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
bafae3ec84
commit
d35412a32a
@ -400,6 +400,12 @@ my $query_backup_status_loop = sub {
|
|||||||
}
|
}
|
||||||
|
|
||||||
my $duration = time() - $starttime;
|
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) {
|
if ($transferred) {
|
||||||
my $transferred_h = bytes_to_human($transferred, 2);
|
my $transferred_h = bytes_to_human($transferred, 2);
|
||||||
if ($reused) {
|
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 {
|
return {
|
||||||
total => $last_total,
|
total => $last_total,
|
||||||
reused => $reused,
|
reused => $reused,
|
||||||
|
Loading…
Reference in New Issue
Block a user