111a82d14SPhilippe Mathieu-Daudé#!/usr/bin/env bash 2a8110c3dSMax Reitz# 3a8110c3dSMax Reitz# Test case for image option amendment in qcow2. 4a8110c3dSMax Reitz# 5a8110c3dSMax Reitz# Copyright (C) 2013 Red Hat, Inc. 6a8110c3dSMax Reitz# 7a8110c3dSMax Reitz# This program is free software; you can redistribute it and/or modify 8a8110c3dSMax Reitz# it under the terms of the GNU General Public License as published by 9a8110c3dSMax Reitz# the Free Software Foundation; either version 2 of the License, or 10a8110c3dSMax Reitz# (at your option) any later version. 11a8110c3dSMax Reitz# 12a8110c3dSMax Reitz# This program is distributed in the hope that it will be useful, 13a8110c3dSMax Reitz# but WITHOUT ANY WARRANTY; without even the implied warranty of 14a8110c3dSMax Reitz# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15a8110c3dSMax Reitz# GNU General Public License for more details. 16a8110c3dSMax Reitz# 17a8110c3dSMax Reitz# You should have received a copy of the GNU General Public License 18a8110c3dSMax Reitz# along with this program. If not, see <http://www.gnu.org/licenses/>. 19a8110c3dSMax Reitz# 20a8110c3dSMax Reitz 21a8110c3dSMax Reitz# creator 22a8110c3dSMax Reitzowner=mreitz@redhat.com 23a8110c3dSMax Reitz 24a8110c3dSMax Reitzseq=`basename $0` 25a8110c3dSMax Reitzecho "QA output created by $seq" 26a8110c3dSMax Reitz 27a8110c3dSMax Reitzstatus=1 # failure is the default! 28a8110c3dSMax Reitz 29a8110c3dSMax Reitz_cleanup() 30a8110c3dSMax Reitz{ 31a8110c3dSMax Reitz _cleanup_test_img 32f91ecbd7SMax Reitz _rm_test_img "$TEST_IMG.data" 33a8110c3dSMax Reitz} 34a8110c3dSMax Reitztrap "_cleanup; exit \$status" 0 1 2 3 15 35a8110c3dSMax Reitz 36a8110c3dSMax Reitz# get standard environment, filters and checks 37a8110c3dSMax Reitz. ./common.rc 38a8110c3dSMax Reitz. ./common.filter 39a8110c3dSMax Reitz 40e696f335SMax Reitz# This tests qcow2-specific low-level functionality 41a8110c3dSMax Reitz_supported_fmt qcow2 421f7bf7d0SPeter Lieven_supported_proto file 43a8110c3dSMax Reitz_supported_os Linux 44407fb56aSMax Reitz# Conversion between different compat versions can only really work 45*3be2024aSMax Reitz# with refcount_bits=16; 46*3be2024aSMax Reitz# we have explicit tests for data_file here, but the whole test does 47*3be2024aSMax Reitz# not work with it 48*3be2024aSMax Reitz_unsupported_imgopts 'refcount_bits=\([^1]\|.\([^6]\|$\)\)' data_file 49a8110c3dSMax Reitz 50a8110c3dSMax Reitzecho 51a8110c3dSMax Reitzecho "=== Testing version downgrade with zero expansion ===" 52a8110c3dSMax Reitzecho 53407fb56aSMax Reitz_make_test_img -o "compat=1.1,lazy_refcounts=on" 64M 54a8110c3dSMax Reitz$QEMU_IO -c "write -z 0 128k" "$TEST_IMG" | _filter_qemu_io 55ea81ca9dSMax Reitz$PYTHON qcow2.py "$TEST_IMG" dump-header 56a8110c3dSMax Reitz$QEMU_IMG amend -o "compat=0.10" "$TEST_IMG" 57ea81ca9dSMax Reitz$PYTHON qcow2.py "$TEST_IMG" dump-header 58a8110c3dSMax Reitz$QEMU_IO -c "read -P 0 0 128k" "$TEST_IMG" | _filter_qemu_io 59a8110c3dSMax Reitz_check_test_img 60a8110c3dSMax Reitz 61a8110c3dSMax Reitzecho 622ecec911SAlberto Garciaecho "=== Testing version downgrade with zero expansion and 4K cache entries ===" 632ecec911SAlberto Garciaecho 64407fb56aSMax Reitz_make_test_img -o "compat=1.1,lazy_refcounts=on" 64M 652ecec911SAlberto Garcia$QEMU_IO -c "write -z 0 128k" "$TEST_IMG" | _filter_qemu_io 662ecec911SAlberto Garcia$QEMU_IO -c "write -z 32M 128k" "$TEST_IMG" | _filter_qemu_io 672ecec911SAlberto Garcia$QEMU_IO -c map "$TEST_IMG" | _filter_qemu_io 682ecec911SAlberto Garcia$PYTHON qcow2.py "$TEST_IMG" dump-header 692ecec911SAlberto Garcia$QEMU_IMG amend -o "compat=0.10" --image-opts \ 702ecec911SAlberto Garcia driver=qcow2,file.filename=$TEST_IMG,l2-cache-entry-size=4096 712ecec911SAlberto Garcia$PYTHON qcow2.py "$TEST_IMG" dump-header 722ecec911SAlberto Garcia$QEMU_IO -c "read -P 0 0 128k" "$TEST_IMG" | _filter_qemu_io 732ecec911SAlberto Garcia$QEMU_IO -c "read -P 0 32M 128k" "$TEST_IMG" | _filter_qemu_io 742ecec911SAlberto Garcia$QEMU_IO -c map "$TEST_IMG" | _filter_qemu_io 752ecec911SAlberto Garcia_check_test_img 762ecec911SAlberto Garcia 772ecec911SAlberto Garciaecho 78a8110c3dSMax Reitzecho "=== Testing dirty version downgrade ===" 79a8110c3dSMax Reitzecho 80407fb56aSMax Reitz_make_test_img -o "compat=1.1,lazy_refcounts=on" 64M 818af224d6SAndrey Shinkevich_NO_VALGRIND \ 82efd0fbbcSAlberto Garcia$QEMU_IO -c "write -P 0x2a 0 128k" -c flush \ 83efd0fbbcSAlberto Garcia -c "sigraise $(kill -l KILL)" "$TEST_IMG" 2>&1 | _filter_qemu_io 84ea81ca9dSMax Reitz$PYTHON qcow2.py "$TEST_IMG" dump-header 85a8110c3dSMax Reitz$QEMU_IMG amend -o "compat=0.10" "$TEST_IMG" 86ea81ca9dSMax Reitz$PYTHON qcow2.py "$TEST_IMG" dump-header 87a8110c3dSMax Reitz$QEMU_IO -c "read -P 0x2a 0 128k" "$TEST_IMG" | _filter_qemu_io 88a8110c3dSMax Reitz_check_test_img 89a8110c3dSMax Reitz 90a8110c3dSMax Reitzecho 91a8110c3dSMax Reitzecho "=== Testing version downgrade with unknown compat/autoclear flags ===" 92a8110c3dSMax Reitzecho 93407fb56aSMax Reitz_make_test_img -o "compat=1.1" 64M 94ea81ca9dSMax Reitz$PYTHON qcow2.py "$TEST_IMG" set-feature-bit compatible 42 95ea81ca9dSMax Reitz$PYTHON qcow2.py "$TEST_IMG" set-feature-bit autoclear 42 96ea81ca9dSMax Reitz$PYTHON qcow2.py "$TEST_IMG" dump-header 97a8110c3dSMax Reitz$QEMU_IMG amend -o "compat=0.10" "$TEST_IMG" 98ea81ca9dSMax Reitz$PYTHON qcow2.py "$TEST_IMG" dump-header 99a8110c3dSMax Reitz_check_test_img 100a8110c3dSMax Reitz 101a8110c3dSMax Reitzecho 102a8110c3dSMax Reitzecho "=== Testing version upgrade and resize ===" 103a8110c3dSMax Reitzecho 104407fb56aSMax Reitz_make_test_img -o "compat=0.10" 64M 105a8110c3dSMax Reitz$QEMU_IO -c "write -P 0x2a 42M 64k" "$TEST_IMG" | _filter_qemu_io 106ea81ca9dSMax Reitz$PYTHON qcow2.py "$TEST_IMG" dump-header 107a8110c3dSMax Reitz$QEMU_IMG amend -o "compat=1.1,lazy_refcounts=on,size=128M" "$TEST_IMG" 108ea81ca9dSMax Reitz$PYTHON qcow2.py "$TEST_IMG" dump-header 109a8110c3dSMax Reitz$QEMU_IO -c "read -P 0x2a 42M 64k" "$TEST_IMG" | _filter_qemu_io 110a8110c3dSMax Reitz_check_test_img 111a8110c3dSMax Reitz 112a8110c3dSMax Reitzecho 113a8110c3dSMax Reitzecho "=== Testing dirty lazy_refcounts=off ===" 114a8110c3dSMax Reitzecho 115407fb56aSMax Reitz_make_test_img -o "compat=1.1,lazy_refcounts=on" 64M 1168af224d6SAndrey Shinkevich_NO_VALGRIND \ 117efd0fbbcSAlberto Garcia$QEMU_IO -c "write -P 0x2a 0 128k" -c flush \ 118efd0fbbcSAlberto Garcia -c "sigraise $(kill -l KILL)" "$TEST_IMG" 2>&1 | _filter_qemu_io 119ea81ca9dSMax Reitz$PYTHON qcow2.py "$TEST_IMG" dump-header 120a8110c3dSMax Reitz$QEMU_IMG amend -o "lazy_refcounts=off" "$TEST_IMG" 121ea81ca9dSMax Reitz$PYTHON qcow2.py "$TEST_IMG" dump-header 122a8110c3dSMax Reitz$QEMU_IO -c "read -P 0x2a 0 128k" "$TEST_IMG" | _filter_qemu_io 123a8110c3dSMax Reitz_check_test_img 124a8110c3dSMax Reitz 125a8110c3dSMax Reitzecho 126a8110c3dSMax Reitzecho "=== Testing backing file ===" 127a8110c3dSMax Reitzecho 128407fb56aSMax Reitz_make_test_img -o "compat=1.1" 64M 129407fb56aSMax ReitzTEST_IMG="$TEST_IMG.base" _make_test_img -o "compat=1.1" 64M 130a8110c3dSMax Reitz$QEMU_IO -c "write -P 0x2a 0 128k" "$TEST_IMG.base" | _filter_qemu_io 131a8110c3dSMax Reitz$QEMU_IO -c "read -P 0 0 128k" "$TEST_IMG" | _filter_qemu_io 132a8110c3dSMax Reitz$QEMU_IMG amend -o "backing_file=$TEST_IMG.base,backing_fmt=qcow2" "$TEST_IMG" 133a8110c3dSMax Reitz$QEMU_IO -c "read -P 0x2a 0 128k" "$TEST_IMG" | _filter_qemu_io 134a8110c3dSMax Reitz_check_test_img 135a8110c3dSMax Reitz 136a8110c3dSMax Reitzecho 137a8110c3dSMax Reitzecho "=== Testing invalid configurations ===" 138a8110c3dSMax Reitzecho 139407fb56aSMax Reitz_make_test_img -o "compat=0.10" 64M 140a8110c3dSMax Reitz$QEMU_IMG amend -o "lazy_refcounts=on" "$TEST_IMG" 141a8110c3dSMax Reitz$QEMU_IMG amend -o "compat=1.1" "$TEST_IMG" # actually valid 142a8110c3dSMax Reitz$QEMU_IMG amend -o "compat=0.10,lazy_refcounts=on" "$TEST_IMG" 143a8110c3dSMax Reitz$QEMU_IMG amend -o "compat=0.42" "$TEST_IMG" 144a8110c3dSMax Reitz$QEMU_IMG amend -o "foo=bar" "$TEST_IMG" 145a8110c3dSMax Reitz$QEMU_IMG amend -o "cluster_size=1k" "$TEST_IMG" 146a8110c3dSMax Reitz$QEMU_IMG amend -o "encryption=on" "$TEST_IMG" 147a8110c3dSMax Reitz$QEMU_IMG amend -o "preallocation=on" "$TEST_IMG" 148a8110c3dSMax Reitz 149a8110c3dSMax Reitzecho 150a8110c3dSMax Reitzecho "=== Testing correct handling of unset value ===" 151a8110c3dSMax Reitzecho 152407fb56aSMax Reitz_make_test_img -o "compat=1.1,cluster_size=1k" 64M 153a8110c3dSMax Reitzecho "Should work:" 154a8110c3dSMax Reitz$QEMU_IMG amend -o "lazy_refcounts=on" "$TEST_IMG" 155a8110c3dSMax Reitzecho "Should not work:" # Just to know which of these tests actually fails 156a8110c3dSMax Reitz$QEMU_IMG amend -o "cluster_size=64k" "$TEST_IMG" 157a8110c3dSMax Reitz 158a8110c3dSMax Reitzecho 159a8110c3dSMax Reitzecho "=== Testing zero expansion on inactive clusters ===" 160a8110c3dSMax Reitzecho 161407fb56aSMax Reitz_make_test_img -o "compat=1.1" 64M 162a8110c3dSMax Reitz$QEMU_IO -c "write -z 0 128k" "$TEST_IMG" | _filter_qemu_io 163a8110c3dSMax Reitz$QEMU_IMG snapshot -c foo "$TEST_IMG" 164a8110c3dSMax Reitz$QEMU_IO -c "write -P 0x2a 0 128k" "$TEST_IMG" | _filter_qemu_io 165a8110c3dSMax Reitz$QEMU_IMG amend -o "compat=0.10" "$TEST_IMG" 166a8110c3dSMax Reitz_check_test_img 167a8110c3dSMax Reitz$QEMU_IO -c "read -P 0x2a 0 128k" "$TEST_IMG" | _filter_qemu_io 168a8110c3dSMax Reitz$QEMU_IMG snapshot -a foo "$TEST_IMG" 169a8110c3dSMax Reitz_check_test_img 170a8110c3dSMax Reitz$QEMU_IO -c "read -P 0 0 128k" "$TEST_IMG" | _filter_qemu_io 171a8110c3dSMax Reitz 172a8110c3dSMax Reitzecho 173d982919dSMax Reitzecho "=== Testing zero expansion on shared L2 table ===" 174d982919dSMax Reitzecho 175407fb56aSMax Reitz_make_test_img -o "compat=1.1" 64M 176d982919dSMax Reitz$QEMU_IO -c "write -z 0 128k" "$TEST_IMG" | _filter_qemu_io 177d982919dSMax Reitz$QEMU_IMG snapshot -c foo "$TEST_IMG" 178d982919dSMax Reitz$QEMU_IMG amend -o "compat=0.10" "$TEST_IMG" 179d982919dSMax Reitz_check_test_img 180d982919dSMax Reitz$QEMU_IO -c "read -P 0 0 128k" "$TEST_IMG" | _filter_qemu_io 181d982919dSMax Reitz$QEMU_IMG snapshot -a foo "$TEST_IMG" 182d982919dSMax Reitz_check_test_img 183d982919dSMax Reitz$QEMU_IO -c "read -P 0 0 128k" "$TEST_IMG" | _filter_qemu_io 184d982919dSMax Reitz 185d982919dSMax Reitzecho 186a8110c3dSMax Reitzecho "=== Testing zero expansion on backed image ===" 187a8110c3dSMax Reitzecho 188407fb56aSMax ReitzTEST_IMG="$TEST_IMG.base" _make_test_img -o "compat=1.1" 64M 189a8110c3dSMax Reitz$QEMU_IO -c "write -P 0x2a 0 128k" "$TEST_IMG.base" | _filter_qemu_io 190407fb56aSMax Reitz_make_test_img -o "compat=1.1" -b "$TEST_IMG.base" 64M 191a8110c3dSMax Reitz$QEMU_IO -c "read -P 0x2a 0 128k" -c "write -z 0 64k" "$TEST_IMG" | _filter_qemu_io 192a8110c3dSMax Reitz$QEMU_IMG amend -o "compat=0.10" "$TEST_IMG" 193a8110c3dSMax Reitz_check_test_img 194a8110c3dSMax Reitz$QEMU_IO -c "read -P 0 0 64k" -c "read -P 0x2a 64k 64k" "$TEST_IMG" | _filter_qemu_io 195a8110c3dSMax Reitz 196a8110c3dSMax Reitzecho 197a8110c3dSMax Reitzecho "=== Testing zero expansion on backed inactive clusters ===" 198a8110c3dSMax Reitzecho 199407fb56aSMax ReitzTEST_IMG="$TEST_IMG.base" _make_test_img -o "compat=1.1" 64M 200a8110c3dSMax Reitz$QEMU_IO -c "write -P 0x2a 0 128k" "$TEST_IMG.base" | _filter_qemu_io 201407fb56aSMax Reitz_make_test_img -o "compat=1.1" -b "$TEST_IMG.base" 64M 202a8110c3dSMax Reitz$QEMU_IO -c "write -z 0 64k" "$TEST_IMG" | _filter_qemu_io 203a8110c3dSMax Reitz$QEMU_IMG snapshot -c foo "$TEST_IMG" 204a8110c3dSMax Reitz$QEMU_IO -c "write -P 0x42 0 128k" "$TEST_IMG" | _filter_qemu_io 205a8110c3dSMax Reitz$QEMU_IMG amend -o "compat=0.10" "$TEST_IMG" 206a8110c3dSMax Reitz_check_test_img 207a8110c3dSMax Reitz$QEMU_IO -c "read -P 0x42 0 128k" "$TEST_IMG" | _filter_qemu_io 208a8110c3dSMax Reitz$QEMU_IMG snapshot -a foo "$TEST_IMG" 209a8110c3dSMax Reitz_check_test_img 210a8110c3dSMax Reitz$QEMU_IO -c "read -P 0 0 64k" -c "read -P 0x2a 64k 64k" "$TEST_IMG" | _filter_qemu_io 211a8110c3dSMax Reitz 212d982919dSMax Reitzecho 213d982919dSMax Reitzecho "=== Testing zero expansion on backed image with shared L2 table ===" 214d982919dSMax Reitzecho 215407fb56aSMax ReitzTEST_IMG="$TEST_IMG.base" _make_test_img -o "compat=1.1" 64M 216d982919dSMax Reitz$QEMU_IO -c "write -P 0x2a 0 128k" "$TEST_IMG.base" | _filter_qemu_io 217407fb56aSMax Reitz_make_test_img -o "compat=1.1" -b "$TEST_IMG.base" 64M 218d982919dSMax Reitz$QEMU_IO -c "write -z 0 128k" "$TEST_IMG" | _filter_qemu_io 219d982919dSMax Reitz$QEMU_IMG snapshot -c foo "$TEST_IMG" 220d982919dSMax Reitz$QEMU_IMG amend -o "compat=0.10" "$TEST_IMG" 221d982919dSMax Reitz_check_test_img 222d982919dSMax Reitz$QEMU_IO -c "read -P 0 0 128k" "$TEST_IMG" | _filter_qemu_io 223d982919dSMax Reitz$QEMU_IMG snapshot -a foo "$TEST_IMG" 224d982919dSMax Reitz_check_test_img 225d982919dSMax Reitz$QEMU_IO -c "read -P 0 0 128k" "$TEST_IMG" | _filter_qemu_io 226d982919dSMax Reitz 227fd9e03e6SMax Reitzecho 228fd9e03e6SMax Reitzecho "=== Testing preallocated zero expansion on full image ===" 229fd9e03e6SMax Reitzecho 230407fb56aSMax ReitzTEST_IMG="$TEST_IMG" _make_test_img -o "compat=1.1" 64M 231fd9e03e6SMax Reitz$QEMU_IO -c "write -P 0x2a 0 64M" "$TEST_IMG" -c "write -z 0 64M" | _filter_qemu_io 232fd9e03e6SMax Reitz$QEMU_IMG amend -o "compat=0.10" "$TEST_IMG" 233fd9e03e6SMax Reitz_check_test_img 234fd9e03e6SMax Reitz$QEMU_IO -c "read -P 0 0 64M" "$TEST_IMG" | _filter_qemu_io 235fd9e03e6SMax Reitz 23678fa6582SMax Reitzecho 23778fa6582SMax Reitzecho "=== Testing progress report without snapshot ===" 23878fa6582SMax Reitzecho 239407fb56aSMax ReitzTEST_IMG="$TEST_IMG.base" _make_test_img -o "compat=1.1" 4G 240407fb56aSMax Reitz_make_test_img -o "compat=1.1" -b "$TEST_IMG.base" 4G 24178fa6582SMax Reitz$QEMU_IO -c "write -z 0 64k" \ 24278fa6582SMax Reitz -c "write -z 1G 64k" \ 24378fa6582SMax Reitz -c "write -z 2G 64k" \ 24478fa6582SMax Reitz -c "write -z 3G 64k" "$TEST_IMG" | _filter_qemu_io 24578fa6582SMax Reitz$QEMU_IMG amend -p -o "compat=0.10" "$TEST_IMG" 24678fa6582SMax Reitz_check_test_img 24778fa6582SMax Reitz 24878fa6582SMax Reitzecho 24978fa6582SMax Reitzecho "=== Testing progress report with snapshot ===" 25078fa6582SMax Reitzecho 251407fb56aSMax ReitzTEST_IMG="$TEST_IMG.base" _make_test_img -o "compat=1.1" 4G 252407fb56aSMax Reitz_make_test_img -o "compat=1.1" -b "$TEST_IMG.base" 4G 25378fa6582SMax Reitz$QEMU_IO -c "write -z 0 64k" \ 25478fa6582SMax Reitz -c "write -z 1G 64k" \ 25578fa6582SMax Reitz -c "write -z 2G 64k" \ 25678fa6582SMax Reitz -c "write -z 3G 64k" "$TEST_IMG" | _filter_qemu_io 25778fa6582SMax Reitz$QEMU_IMG snapshot -c foo "$TEST_IMG" 25878fa6582SMax Reitz$QEMU_IMG amend -p -o "compat=0.10" "$TEST_IMG" 25978fa6582SMax Reitz_check_test_img 26078fa6582SMax Reitz 261ac40260dSKevin Wolfecho 262ac40260dSKevin Wolfecho "=== Testing version downgrade with external data file ===" 263ac40260dSKevin Wolfecho 264407fb56aSMax Reitz_make_test_img -o "compat=1.1,data_file=$TEST_IMG.data" 64M 265ac40260dSKevin Wolf$QEMU_IMG amend -o "compat=0.10" "$TEST_IMG" 266ac40260dSKevin Wolf_img_info --format-specific 267ac40260dSKevin Wolf_check_test_img 268ac40260dSKevin Wolf 269ac40260dSKevin Wolfecho 270ac40260dSKevin Wolfecho "=== Try changing the external data file ===" 271ac40260dSKevin Wolfecho 272407fb56aSMax Reitz_make_test_img -o "compat=1.1" 64M 273ac40260dSKevin Wolf$QEMU_IMG amend -o "data_file=foo" "$TEST_IMG" 274ac40260dSKevin Wolf 275ac40260dSKevin Wolfecho 276407fb56aSMax Reitz_make_test_img -o "compat=1.1,data_file=$TEST_IMG.data" 64M 277ac40260dSKevin Wolf$QEMU_IMG amend -o "data_file=foo" "$TEST_IMG" 278ac40260dSKevin Wolf_img_info --format-specific 279ac40260dSKevin WolfTEST_IMG="data-file.filename=$TEST_IMG.data,file.filename=$TEST_IMG" _img_info --format-specific --image-opts 280ac40260dSKevin Wolf 281ac40260dSKevin Wolfecho 282ac40260dSKevin Wolf$QEMU_IMG amend -o "data_file=" --image-opts "data-file.filename=$TEST_IMG.data,file.filename=$TEST_IMG" 283ac40260dSKevin Wolf_img_info --format-specific 284ac40260dSKevin WolfTEST_IMG="data-file.filename=$TEST_IMG.data,file.filename=$TEST_IMG" _img_info --format-specific --image-opts 285ac40260dSKevin Wolf 286ac40260dSKevin Wolfecho 287ac40260dSKevin Wolfecho "=== Clearing and setting data-file-raw ===" 288ac40260dSKevin Wolfecho 289407fb56aSMax Reitz_make_test_img -o "compat=1.1,data_file=$TEST_IMG.data,data_file_raw=on" 64M 290ac40260dSKevin Wolf$QEMU_IMG amend -o "data_file_raw=on" "$TEST_IMG" 291ac40260dSKevin Wolf_img_info --format-specific 292ac40260dSKevin Wolf_check_test_img 293ac40260dSKevin Wolf 294ac40260dSKevin Wolf$QEMU_IMG amend -o "data_file_raw=off" "$TEST_IMG" 295ac40260dSKevin Wolf_img_info --format-specific 296ac40260dSKevin Wolf_check_test_img 297ac40260dSKevin Wolf 298ac40260dSKevin Wolf$QEMU_IMG amend -o "data_file_raw=on" "$TEST_IMG" 299ac40260dSKevin Wolf_img_info --format-specific 300ac40260dSKevin Wolf_check_test_img 301ac40260dSKevin Wolf 302ac40260dSKevin Wolf 303a8110c3dSMax Reitz# success, all done 304a8110c3dSMax Reitzecho "*** done" 305a8110c3dSMax Reitzrm -f $seq.full 306a8110c3dSMax Reitzstatus=0 307