[PATCH 0/3] Fix the virt-install progress bar file size

2022-11-09 Thread Toshiki Sonoda
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

[PATCH 1/3] virtinstall: Improve the progress bar output by meter.end()

2022-11-09 Thread Toshiki Sonoda
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 -

[PATCH 2/3] virtinstall: Fix the allocating disk size printed by the progress bar

2022-11-09 Thread Toshiki Sonoda
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:

[PATCH 3/3] virtinstall: Hide total_size in the progress bar if it doesn't need

2022-11-09 Thread Toshiki Sonoda
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.