file size info: prepare to make format parameter mandatory

In almost all cases, there already is an expected format. Allow
setting a special value 'auto-detect' to opt-in to automatic format
detection by 'qemu-img' for the exceptions.

Suggested-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
This commit is contained in:
Fiona Ebner
2024-12-06 17:25:27 +01:00
committed by Fabian Grünbichler
parent 9612844ff3
commit 936fbe3f35
3 changed files with 10 additions and 3 deletions

View File

@ -2223,7 +2223,7 @@ sub assert_iso_content {
my ($path) = @_;
# check for things like backing image
file_size_info($path, undef, undef, 1);
file_size_info($path, undef, 'auto-detect', 1);
return 1;
}