mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
qemu-iotests: Add 043 backing file chain infinite loop test
This new test verifies that qemu-img info --backing-chain safely aborts when an image file has a backing file infinite loop. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
9699bf0d06
commit
514d9da5a9
4 changed files with 172 additions and 0 deletions
|
@ -145,6 +145,16 @@ _check_test_img()
|
|||
sed -e 's/qemu-img\: This image format does not support checks/No errors were found on the image./'
|
||||
}
|
||||
|
||||
_img_info()
|
||||
{
|
||||
$QEMU_IMG info "$@" $TEST_IMG 2>&1 | \
|
||||
sed -e "s#$IMGPROTO:$TEST_DIR#TEST_DIR#g" \
|
||||
-e "s#$TEST_DIR#TEST_DIR#g" \
|
||||
-e "s#$IMGFMT#IMGFMT#g" \
|
||||
-e "/^disk size:/ D" \
|
||||
-e "/actual-size/ D"
|
||||
}
|
||||
|
||||
_get_pids_by_name()
|
||||
{
|
||||
if [ $# -ne 1 ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue