Fix the virt-install progress bar file size
These patches improve about the virt-install progress bar.
Since version 4.0, implementation of the progress bar has changed.
If the file copy about vmlinuz and initrd.img completes quickly
(less than self.update_period),
the process ends without updat
When virt-install transfers the vmlinuz and initrd.img from an iso disk,
virt-install prints the file size as 0B to the progress bar.
Therefore, we fix the meter to force update if meter.end()
is called earlier than self.update_period.
Signed-off-by: Toshiki Sonoda
Signed-off-by: Haruka Ohata
-
When a sparse file is created during a disk allocation,
virt-install prints not the created disk size but a sparse file size.
Therefore, we fix to print the created disk size during disk allocation
instead of the size of the sparse file by updating the meter with the
self.capacity.
Signed-off-by:
virt-install prints the total_size value to the progress bar even if it
is meaningless.
This value can be confusing to user, so for execute prosess that doesn't
copy files (total_size = 0B), we hide the total_size value.
For example, 'Creating domain...' doesn't need to print the total_size
value.