qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

iotests: Keep testing broken relative extent paths

We had a test for a case where relative extent paths did not work, but
unfortunately we just fixed the underlying problem, so it works now.
This patch adds a new test case that still fails.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Message-id: 20190815153638.4600-4-mreitz@redhat.com
Reviewed-by: John Snow <jsnow@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>

+31
+27
tests/qemu-iotests/059
··· 114 114 115 115 echo 116 116 echo "=== Testing monolithicFlat with internally generated JSON file name ===" 117 + 118 + echo '--- blkdebug ---' 117 119 # Should work, because bdrv_dirname() works fine with blkdebug 118 120 IMGOPTS="subformat=monolithicFlat" _make_test_img 64M 119 121 $QEMU_IO -c "open -o driver=$IMGFMT,file.driver=blkdebug,file.image.filename=$TEST_IMG,file.inject-error.0.event=read_aio" \ ··· 121 123 2>&1 \ 122 124 | _filter_testdir | _filter_imgfmt | _filter_img_info 123 125 _cleanup_test_img 126 + 127 + echo '--- quorum ---' 128 + # Should not work, because bdrv_dirname() does not work with quorum 129 + IMGOPTS="subformat=monolithicFlat" _make_test_img 64M 130 + cp "$TEST_IMG" "$TEST_IMG.orig" 131 + 132 + filename="json:{ 133 + \"driver\": \"$IMGFMT\", 134 + \"file\": { 135 + \"driver\": \"quorum\", 136 + \"children\": [ { 137 + \"driver\": \"file\", 138 + \"filename\": \"$TEST_IMG\" 139 + }, { 140 + \"driver\": \"file\", 141 + \"filename\": \"$TEST_IMG.orig\" 142 + } ], 143 + \"vote-threshold\": 1 144 + } }" 145 + 146 + filename=$(echo "$filename" | tr '\n' ' ' | sed -e 's/\s\+/ /g') 147 + $QEMU_IMG info "$filename" 2>&1 \ 148 + | sed -e "s/'json:[^']*'/\$QUORUM_FILE/g" \ 149 + | _filter_testdir | _filter_imgfmt | _filter_img_info 150 + 124 151 125 152 echo 126 153 echo "=== Testing version 3 ==="
+4
tests/qemu-iotests/059.out
··· 2049 2049 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2050 2050 2051 2051 === Testing monolithicFlat with internally generated JSON file name === 2052 + --- blkdebug --- 2052 2053 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 2053 2054 format name: IMGFMT 2054 2055 cluster size: 0 bytes 2055 2056 vm state offset: 0 bytes 2057 + --- quorum --- 2058 + Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 2059 + qemu-img: Could not open $QUORUM_FILE: Cannot use relative paths with VMDK descriptor file $QUORUM_FILE: Cannot generate a base directory for quorum nodes 2056 2060 2057 2061 === Testing version 3 === 2058 2062 image: TEST_DIR/iotest-version3.IMGFMT