]> git.ipfire.org Git - thirdparty/qemu.git/commit
iotests/common.rc: add disk_usage function
authorAndrey Drobyshev <andrey.drobyshev@virtuozzo.com>
Fri, 9 May 2025 20:40:29 +0000 (15:40 -0500)
committerEric Blake <eblake@redhat.com>
Thu, 15 May 2025 02:22:22 +0000 (21:22 -0500)
commitbe9bac072ede6e6aa27079f59efcf17b56bd7b26
treea1c15343cd46c74275be64cf517bee22edc2c125
parent7e277545b90874171128804e256a538fb0e8dd7e
iotests/common.rc: add disk_usage function

Move the definition from iotests/250 to common.rc.  This is used to
detect real disk usage of sparse files.  In particular, we want to use
it for checking subclusters-based discards.

Signed-off-by: Andrey Drobyshev <andrey.drobyshev@virtuozzo.com>
Reviewed-by: Alexander Ivanov <alexander.ivanov@virtuozzo.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Message-ID: <20240913163942.423050-6-andrey.drobyshev@virtuozzo.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-ID: <20250509204341.3553601-27-eblake@redhat.com>
tests/qemu-iotests/250
tests/qemu-iotests/common.rc