]> git.ipfire.org Git - thirdparty/qemu.git/commit
qemu-img: measure: convert img_size to signed, simplify handling
authorMichael Tokarev <mjt@tls.msk.ru>
Sat, 31 May 2025 17:15:43 +0000 (20:15 +0300)
committerKevin Wolf <kwolf@redhat.com>
Tue, 15 Jul 2025 18:49:01 +0000 (20:49 +0200)
commit1c47abc5779dfaaee303f0bff144e88dc8fb74d5
tree7a4172fab8cb25eb1602418215f158c174817ec8
parent96acc034ffffc8d7dc0cf3dfbf2996cbdbe3dde2
qemu-img: measure: convert img_size to signed, simplify handling

qemu_opt_set_number() expects signed int64_t.

Use int64_t instead of uint64_t for img_size, use -1 as "unset"
value instead of UINT64_MAX, and do not require temporary sval
for conversion from string.

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-ID: <20250531171609.197078-2-mjt@tls.msk.ru>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qemu-img.c