[pve-devel] applied: [PATCH storage v3 2/2] file_size_info: cast 'size' and 'used' to integer

Thomas Lamprecht t.lamprecht at proxmox.com
Mon Feb 21 16:08:54 CET 2022


On 18.02.22 09:58, Mira Limbeck wrote:
> `qemu-img info --output=json` returns the size and used values as integers in
> the JSON format, but the regex match converts them to strings.
> As we know they only contain digits, we can simply cast them back to integers
> after the regex.
> 
> The API requires them to be integers.
> 
> Signed-off-by: Mira Limbeck <m.limbeck at proxmox.com>
> Reviewed-by: Fabian Ebner <f.ebner at proxmox.com>
> ---
> v3:
>  - changed comment to a short one
>  - added R-b tag
> v2:
>  - reworded commit subject and message
> 
>  PVE/Storage/Plugin.pm | 4 ++++
>  1 file changed, 4 insertions(+)
> 
>

applied, thanks!





More information about the pve-devel mailing list