aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@amazon.com>2013-12-07 07:35:31 -0800
committerAnthony Liguori <aliguori@amazon.com>2013-12-07 07:35:31 -0800
commit93531372f0f74bb4d886480c0c8aa0e4ca6f5423 (patch)
treebe13df35b2e689f031eef40bc06311b91bfc3548 /tests
parent0c0cb6a2378f937410f5f55cbf3e3b2c20f293c6 (diff)
parentac9524dc55dc32e492ac3e6fbc9785be7168f8a2 (diff)
downloadqemu-93531372f0f74bb4d886480c0c8aa0e4ca6f5423.zip
qemu-93531372f0f74bb4d886480c0c8aa0e4ca6f5423.tar.gz
qemu-93531372f0f74bb4d886480c0c8aa0e4ca6f5423.tar.bz2
Merge remote-tracking branch 'stefanha/block' into staging
# By Paolo Bonzini (17) and others # Via Stefan Hajnoczi * stefanha/block: (48 commits) qemu-iotests: filter QEMU monitor \r\n aio: make aio_poll(ctx, true) block with no fds block: clean up bdrv_drain_all() throttling comments qcow2: use start_of_cluster() and offset_into_cluster() everywhere qemu-img: decrease progress update interval on convert qemu-img: round down request length to an aligned sector qemu-img: dynamically adjust iobuffer size during convert block/iscsi: set bs->bl.opt_transfer_length block: add opt_transfer_length to BlockLimits block/iscsi: set bdi->cluster_size qemu-img: fix usage instruction for qemu-img convert qemu-img: add support for skipping zeroes in input during convert qemu-nbd: add doc for option -f qemu-iotests: add test for snapshot in qemu-img convert qemu-img: add -l for snapshot in convert qemu-iotests: add 058 internal snapshot export with qemu-nbd case qemu-nbd: support internal snapshot export snapshot: distinguish id and name in load_tmp qemu-iotests: Split qcow2 only cases in 048 qemu-iotests: Clean up spaces in usage output ... Message-id: 1386347807-27359-1-git-send-email-stefanha@redhat.com Signed-off-by: Anthony Liguori <aliguori@amazon.com>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/qemu-iotests/0263
-rwxr-xr-xtests/qemu-iotests/0393
-rwxr-xr-xtests/qemu-iotests/04827
-rw-r--r--tests/qemu-iotests/048.out16
-rw-r--r--tests/qemu-iotests/051.out112
-rwxr-xr-xtests/qemu-iotests/0524
-rwxr-xr-xtests/qemu-iotests/058138
-rw-r--r--tests/qemu-iotests/058.out44
-rwxr-xr-xtests/qemu-iotests/0595
-rw-r--r--tests/qemu-iotests/059.out2012
-rwxr-xr-xtests/qemu-iotests/07486
-rw-r--r--tests/qemu-iotests/074.out18
-rwxr-xr-xtests/qemu-iotests/check3
-rw-r--r--tests/qemu-iotests/common37
-rw-r--r--tests/qemu-iotests/common.filter3
-rw-r--r--tests/qemu-iotests/common.rc28
-rw-r--r--tests/qemu-iotests/group4
-rw-r--r--tests/qemu-iotests/iotests.py3
-rw-r--r--tests/test-aio.c1
19 files changed, 2418 insertions, 129 deletions
diff --git a/tests/qemu-iotests/026 b/tests/qemu-iotests/026
index ebe29d0..c9c5f83 100755
--- a/tests/qemu-iotests/026
+++ b/tests/qemu-iotests/026
@@ -44,7 +44,8 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
_supported_fmt qcow2
_supported_proto generic
_supported_os Linux
-
+_default_cache_mode "writethrough"
+_supported_cache_modes "writethrough" "none"
echo "Errors while writing 128 kB"
echo
diff --git a/tests/qemu-iotests/039 b/tests/qemu-iotests/039
index 8bade92..6abf472 100755
--- a/tests/qemu-iotests/039
+++ b/tests/qemu-iotests/039
@@ -44,7 +44,8 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
_supported_fmt qcow2
_supported_proto generic
_supported_os Linux
-_unsupported_qemu_io_options --nocache
+_default_cache_mode "writethrough"
+_supported_cache_modes "writethrough"
size=128M
diff --git a/tests/qemu-iotests/048 b/tests/qemu-iotests/048
index 9def7fc..65da46d 100755
--- a/tests/qemu-iotests/048
+++ b/tests/qemu-iotests/048
@@ -81,32 +81,5 @@ cp "$TEST_IMG" "$TEST_IMG2"
io_pattern write 512 512 0 1 101
_compare
-# Test cluster allocated in one, with IO error
-cat > "$TEST_DIR/blkdebug.conf"<<EOF
-[inject-error]
-event = "read_aio"
-errno = "5"
-once ="off"
-EOF
-_make_test_img $size
-cp "$TEST_IMG" "$TEST_IMG2"
-io_pattern write 512 512 0 1 102
-TEST_IMG="blkdebug:$TEST_DIR/blkdebug.conf:$TEST_IMG" _compare 2>&1 |\
- _filter_testdir | _filter_imgfmt
-
-# Test cluster allocated in one, with different sizes and IO error in the part
-# that exists only in one image
-cat > "$TEST_DIR/blkdebug.conf"<<EOF
-[inject-error]
-event = "read_aio"
-errno = "5"
-once ="off"
-EOF
-_make_test_img $size
-TEST_IMG="$TEST_IMG2" _make_test_img 0
-io_pattern write 512 512 0 1 102
-TEST_IMG="blkdebug:$TEST_DIR/blkdebug.conf:$TEST_IMG" _compare 2>&1 |\
- _filter_testdir | _filter_imgfmt
-
# Cleanup
status=0
diff --git a/tests/qemu-iotests/048.out b/tests/qemu-iotests/048.out
index 58d03d3..c0f380d 100644
--- a/tests/qemu-iotests/048.out
+++ b/tests/qemu-iotests/048.out
@@ -37,20 +37,4 @@ wrote 512/512 bytes at offset 512
512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
Content mismatch at offset 512!
1
-Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824
-=== IO: pattern 102
-wrote 512/512 bytes at offset 512
-512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
-qemu-img: Error while reading offset 0 of blkdebug:TEST_DIR/blkdebug.conf:TEST_DIR/t.IMGFMT: Input/output error
-qemu-img: Error while reading offset 0: Input/output error
-4
-Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824
-Formatting 'TEST_DIR/t.IMGFMT.2', fmt=IMGFMT size=0
-=== IO: pattern 102
-wrote 512/512 bytes at offset 512
-512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
-qemu-img: Error while reading offset 0 of blkdebug:TEST_DIR/blkdebug.conf:TEST_DIR/t.IMGFMT: Input/output error
-qemu-img: Error while reading offset 0 of blkdebug:TEST_DIR/blkdebug.conf:TEST_DIR/t.IMGFMT: Input/output error
-Warning: Image size mismatch!
-4
Cleanup
diff --git a/tests/qemu-iotests/051.out b/tests/qemu-iotests/051.out
index ddef87c..49e95a2 100644
--- a/tests/qemu-iotests/051.out
+++ b/tests/qemu-iotests/051.out
@@ -39,12 +39,12 @@ ide0-hd0: TEST_DIR/t.qcow2 (qcow2)
=== Enable and disable lazy refcounting on the command line, plus some invalid values ===
Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on
-QEMU X.Y.Z monitor - type 'help' for more information
-(qemu) qququiquit
+QEMU X.Y.Z monitor - type 'help' for more information
+(qemu) qququiquit
Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off
-QEMU X.Y.Z monitor - type 'help' for more information
-(qemu) qququiquit
+QEMU X.Y.Z monitor - type 'help' for more information
+(qemu) qququiquit
Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=
QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=: could not open disk image TEST_DIR/t.qcow2: Parameter 'lazy-refcounts' expects 'on' or 'off'
@@ -63,71 +63,71 @@ Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on
QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on: could not open disk image TEST_DIR/t.qcow2: Lazy refcounts require a qcow2 image with at least qemu 1.1 compatibility level
Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off
-QEMU X.Y.Z monitor - type 'help' for more information
-(qemu) qququiquit
+QEMU X.Y.Z monitor - type 'help' for more information
+(qemu) qququiquit
=== No medium ===
Testing: -drive if=floppy
-QEMU X.Y.Z monitor - type 'help' for more information
-(qemu) qququiquit
+QEMU X.Y.Z monitor - type 'help' for more information
+(qemu) qququiquit
Testing: -drive if=ide,media=cdrom
-QEMU X.Y.Z monitor - type 'help' for more information
-(qemu) qququiquit
+QEMU X.Y.Z monitor - type 'help' for more information
+(qemu) qququiquit
Testing: -drive if=scsi,media=cdrom
-QEMU X.Y.Z monitor - type 'help' for more information
-(qemu) qququiquit
+QEMU X.Y.Z monitor - type 'help' for more information
+(qemu) qququiquit
Testing: -drive if=ide
-QEMU X.Y.Z monitor - type 'help' for more information
+QEMU X.Y.Z monitor - type 'help' for more information
(qemu) QEMU_PROG: Device needs media, but drive is empty
QEMU_PROG: Device initialization failed.
QEMU_PROG: Initialization of device ide-hd failed
Testing: -drive if=virtio
-QEMU X.Y.Z monitor - type 'help' for more information
+QEMU X.Y.Z monitor - type 'help' for more information
(qemu) QEMU_PROG: -drive if=virtio: Device needs media, but drive is empty
QEMU_PROG: -drive if=virtio: Device initialization failed.
QEMU_PROG: -drive if=virtio: Device initialization failed.
QEMU_PROG: -drive if=virtio: Device 'virtio-blk-pci' could not be initialized
Testing: -drive if=scsi
-QEMU X.Y.Z monitor - type 'help' for more information
+QEMU X.Y.Z monitor - type 'help' for more information
(qemu) QEMU_PROG: -drive if=scsi: Device needs media, but drive is empty
QEMU_PROG: Device initialization failed.
QEMU_PROG: Initialization of device lsi53c895a failed
Testing: -drive if=none,id=disk -device ide-cd,drive=disk
-QEMU X.Y.Z monitor - type 'help' for more information
-(qemu) qququiquit
+QEMU X.Y.Z monitor - type 'help' for more information
+(qemu) qququiquit
Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-cd,drive=disk
-QEMU X.Y.Z monitor - type 'help' for more information
-(qemu) qququiquit
+QEMU X.Y.Z monitor - type 'help' for more information
+(qemu) qququiquit
Testing: -drive if=none,id=disk -device ide-drive,drive=disk
-QEMU X.Y.Z monitor - type 'help' for more information
+QEMU X.Y.Z monitor - type 'help' for more information
(qemu) QEMU_PROG: -device ide-drive,drive=disk: Device needs media, but drive is empty
QEMU_PROG: -device ide-drive,drive=disk: Device initialization failed.
QEMU_PROG: -device ide-drive,drive=disk: Device 'ide-drive' could not be initialized
Testing: -drive if=none,id=disk -device ide-hd,drive=disk
-QEMU X.Y.Z monitor - type 'help' for more information
+QEMU X.Y.Z monitor - type 'help' for more information
(qemu) QEMU_PROG: -device ide-hd,drive=disk: Device needs media, but drive is empty
QEMU_PROG: -device ide-hd,drive=disk: Device initialization failed.
QEMU_PROG: -device ide-hd,drive=disk: Device 'ide-hd' could not be initialized
Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-disk,drive=disk
-QEMU X.Y.Z monitor - type 'help' for more information
+QEMU X.Y.Z monitor - type 'help' for more information
(qemu) QEMU_PROG: -device scsi-disk,drive=disk: Device needs media, but drive is empty
QEMU_PROG: -device scsi-disk,drive=disk: Device initialization failed.
QEMU_PROG: -device scsi-disk,drive=disk: Device 'scsi-disk' could not be initialized
Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-hd,drive=disk
-QEMU X.Y.Z monitor - type 'help' for more information
+QEMU X.Y.Z monitor - type 'help' for more information
(qemu) QEMU_PROG: -device scsi-hd,drive=disk: Device needs media, but drive is empty
QEMU_PROG: -device scsi-hd,drive=disk: Device initialization failed.
QEMU_PROG: -device scsi-hd,drive=disk: Device 'scsi-hd' could not be initialized
@@ -136,81 +136,81 @@ QEMU_PROG: -device scsi-hd,drive=disk: Device 'scsi-hd' could not be initialized
=== Read-only ===
Testing: -drive file=TEST_DIR/t.qcow2,if=floppy,readonly=on
-QEMU X.Y.Z monitor - type 'help' for more information
-(qemu) qququiquit
+QEMU X.Y.Z monitor - type 'help' for more information
+(qemu) qququiquit
Testing: -drive file=TEST_DIR/t.qcow2,if=ide,media=cdrom,readonly=on
-QEMU X.Y.Z monitor - type 'help' for more information
-(qemu) qququiquit
+QEMU X.Y.Z monitor - type 'help' for more information
+(qemu) qququiquit
Testing: -drive file=TEST_DIR/t.qcow2,if=scsi,media=cdrom,readonly=on
-QEMU X.Y.Z monitor - type 'help' for more information
-(qemu) qququiquit
+QEMU X.Y.Z monitor - type 'help' for more information
+(qemu) qququiquit
Testing: -drive file=TEST_DIR/t.qcow2,if=ide,readonly=on
-QEMU X.Y.Z monitor - type 'help' for more information
+QEMU X.Y.Z monitor - type 'help' for more information
(qemu) QEMU_PROG: Can't use a read-only drive
QEMU_PROG: Device initialization failed.
QEMU_PROG: Initialization of device ide-hd failed
Testing: -drive file=TEST_DIR/t.qcow2,if=virtio,readonly=on
-QEMU X.Y.Z monitor - type 'help' for more information
-(qemu) qququiquit
+QEMU X.Y.Z monitor - type 'help' for more information
+(qemu) qququiquit
Testing: -drive file=TEST_DIR/t.qcow2,if=scsi,readonly=on
-QEMU X.Y.Z monitor - type 'help' for more information
-(qemu) qququiquit
+QEMU X.Y.Z monitor - type 'help' for more information
+(qemu) qququiquit
Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-cd,drive=disk
-QEMU X.Y.Z monitor - type 'help' for more information
-(qemu) qququiquit
+QEMU X.Y.Z monitor - type 'help' for more information
+(qemu) qququiquit
Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-cd,drive=disk
-QEMU X.Y.Z monitor - type 'help' for more information
-(qemu) qququiquit
+QEMU X.Y.Z monitor - type 'help' for more information
+(qemu) qququiquit
Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-drive,drive=disk
-QEMU X.Y.Z monitor - type 'help' for more information
+QEMU X.Y.Z monitor - type 'help' for more information
(qemu) QEMU_PROG: -device ide-drive,drive=disk: Can't use a read-only drive
QEMU_PROG: -device ide-drive,drive=disk: Device initialization failed.
QEMU_PROG: -device ide-drive,drive=disk: Device 'ide-drive' could not be initialized
Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-hd,drive=disk
-QEMU X.Y.Z monitor - type 'help' for more information
+QEMU X.Y.Z monitor - type 'help' for more information
(qemu) QEMU_PROG: -device ide-hd,drive=disk: Can't use a read-only drive
QEMU_PROG: -device ide-hd,drive=disk: Device initialization failed.
QEMU_PROG: -device ide-hd,drive=disk: Device 'ide-hd' could not be initialized
Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-disk,drive=disk
-QEMU X.Y.Z monitor - type 'help' for more information
-(qemu) qququiquit
+QEMU X.Y.Z monitor - type 'help' for more information
+(qemu) qququiquit
Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-hd,drive=disk
-QEMU X.Y.Z monitor - type 'help' for more information
-(qemu) qququiquit
+QEMU X.Y.Z monitor - type 'help' for more information
+(qemu) qququiquit
=== Cache modes ===
Testing: -drive media=cdrom,cache=none
-QEMU X.Y.Z monitor - type 'help' for more information
-(qemu) qququiquit
+QEMU X.Y.Z monitor - type 'help' for more information
+(qemu) qququiquit
Testing: -drive media=cdrom,cache=directsync
-QEMU X.Y.Z monitor - type 'help' for more information
-(qemu) qququiquit
+QEMU X.Y.Z monitor - type 'help' for more information
+(qemu) qququiquit
Testing: -drive media=cdrom,cache=writeback
-QEMU X.Y.Z monitor - type 'help' for more information
-(qemu) qququiquit
+QEMU X.Y.Z monitor - type 'help' for more information
+(qemu) qququiquit
Testing: -drive media=cdrom,cache=writethrough
-QEMU X.Y.Z monitor - type 'help' for more information
-(qemu) qququiquit
+QEMU X.Y.Z monitor - type 'help' for more information
+(qemu) qququiquit
Testing: -drive media=cdrom,cache=unsafe
-QEMU X.Y.Z monitor - type 'help' for more information
-(qemu) qququiquit
+QEMU X.Y.Z monitor - type 'help' for more information
+(qemu) qququiquit
Testing: -drive media=cdrom,cache=invalid_value
QEMU_PROG: -drive media=cdrom,cache=invalid_value: invalid cache option
@@ -219,8 +219,8 @@ QEMU_PROG: -drive media=cdrom,cache=invalid_value: invalid cache option
=== Specifying the protocol layer ===
Testing: -drive file=TEST_DIR/t.qcow2,file.driver=file
-QEMU X.Y.Z monitor - type 'help' for more information
-(qemu) qququiquit
+QEMU X.Y.Z monitor - type 'help' for more information
+(qemu) qququiquit
Testing: -drive file=TEST_DIR/t.qcow2,file.driver=qcow2
QEMU_PROG: -drive file=TEST_DIR/t.qcow2,file.driver=qcow2: could not open disk image TEST_DIR/t.qcow2: Can't use 'qcow2' as a block driver for the protocol level
diff --git a/tests/qemu-iotests/052 b/tests/qemu-iotests/052
index f5f9683..4d4e411 100755
--- a/tests/qemu-iotests/052
+++ b/tests/qemu-iotests/052
@@ -41,8 +41,8 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
_supported_fmt generic
_supported_proto generic
_supported_os Linux
-_unsupported_qemu_io_options --nocache
-
+_default_cache_mode "writethrough"
+_supported_cache_modes "writethrough"
size=128M
_make_test_img $size
diff --git a/tests/qemu-iotests/058 b/tests/qemu-iotests/058
new file mode 100755
index 0000000..14584cd
--- /dev/null
+++ b/tests/qemu-iotests/058
@@ -0,0 +1,138 @@
+#!/bin/bash
+#
+# Test export internal snapshot by qemu-nbd, convert it by qemu-img.
+#
+# Copyright (C) 2013 IBM, Inc.
+#
+# Based on 029.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
+# creator
+owner=xiawenc@linux.vnet.ibm.com
+
+seq=`basename $0`
+echo "QA output created by $seq"
+
+here=`pwd`
+tmp=/tmp/$$
+status=1 # failure is the default!
+
+nbd_unix_socket=$TEST_DIR/test_qemu_nbd_socket
+nbd_snapshot_img="nbd:unix:$nbd_unix_socket"
+
+_cleanup_nbd()
+{
+ if [ -n "$NBD_SNAPSHOT_PID" ]; then
+ kill "$NBD_SNAPSHOT_PID"
+ fi
+ rm -f "$nbd_unix_socket"
+}
+
+_wait_for_nbd()
+{
+ for ((i = 0; i < 300; i++))
+ do
+ if [ -r "$nbd_unix_socket" ]; then
+ return
+ fi
+ sleep 0.1
+ done
+ echo "Failed in check of unix socket created by qemu-nbd"
+ exit 1
+}
+
+converted_image=$TEST_IMG.converted
+
+_export_nbd_snapshot()
+{
+ _cleanup_nbd
+ $QEMU_NBD -v -t -k "$nbd_unix_socket" "$TEST_IMG" -l $1 &
+ NBD_SNAPSHOT_PID=$!
+ _wait_for_nbd
+}
+
+_export_nbd_snapshot1()
+{
+ _cleanup_nbd
+ $QEMU_NBD -v -t -k "$nbd_unix_socket" "$TEST_IMG" -l snapshot.name=$1 &
+ NBD_SNAPSHOT_PID=$!
+ _wait_for_nbd
+}
+
+_cleanup()
+{
+ _cleanup_nbd
+ _cleanup_test_img
+ rm -f "$converted_image"
+}
+trap "_cleanup; exit \$status" 0 1 2 3 15
+
+# get standard environment, filters and checks
+. ./common.rc
+. ./common.filter
+. ./common.pattern
+
+_supported_fmt qcow2
+_supported_proto file
+_require_command QEMU_NBD
+
+echo
+echo "== preparing image =="
+_make_test_img 64M
+$QEMU_IO -c 'write -P 0xa 0x1000 0x1000' "$TEST_IMG" | _filter_qemu_io
+$QEMU_IO -c 'write -P 0xb 0x2000 0x1000' "$TEST_IMG" | _filter_qemu_io
+$QEMU_IMG snapshot -c sn1 "$TEST_IMG"
+$QEMU_IO -c 'write -P 0xc 0x1000 0x1000' "$TEST_IMG" | _filter_qemu_io
+$QEMU_IO -c 'write -P 0xd 0x2000 0x1000' "$TEST_IMG" | _filter_qemu_io
+_check_test_img
+
+echo
+echo "== verifying the image file with patterns =="
+$QEMU_IO -c 'read -P 0xc 0x1000 0x1000' "$TEST_IMG" | _filter_qemu_io
+$QEMU_IO -c 'read -P 0xd 0x2000 0x1000' "$TEST_IMG" | _filter_qemu_io
+
+_export_nbd_snapshot sn1
+
+echo
+echo "== verifying the exported snapshot with patterns, method 1 =="
+$QEMU_IO -c 'read -P 0xa 0x1000 0x1000' "$nbd_snapshot_img" | _filter_qemu_io
+$QEMU_IO -c 'read -P 0xb 0x2000 0x1000' "$nbd_snapshot_img" | _filter_qemu_io
+
+_export_nbd_snapshot1 sn1
+
+echo
+echo "== verifying the exported snapshot with patterns, method 2 =="
+$QEMU_IO -c 'read -P 0xa 0x1000 0x1000' "$nbd_snapshot_img" | _filter_qemu_io
+$QEMU_IO -c 'read -P 0xb 0x2000 0x1000' "$nbd_snapshot_img" | _filter_qemu_io
+
+$QEMU_IMG convert "$TEST_IMG" -l sn1 -O qcow2 "$converted_image"
+
+echo
+echo "== verifying the converted snapshot with patterns, method 1 =="
+$QEMU_IO -c 'read -P 0xa 0x1000 0x1000' "$converted_image" | _filter_qemu_io
+$QEMU_IO -c 'read -P 0xb 0x2000 0x1000' "$converted_image" | _filter_qemu_io
+
+$QEMU_IMG convert "$TEST_IMG" -l snapshot.name=sn1 -O qcow2 "$converted_image"
+
+echo
+echo "== verifying the converted snapshot with patterns, method 2 =="
+$QEMU_IO -c 'read -P 0xa 0x1000 0x1000' "$converted_image" | _filter_qemu_io
+$QEMU_IO -c 'read -P 0xb 0x2000 0x1000' "$converted_image" | _filter_qemu_io
+
+# success, all done
+echo "*** done"
+rm -f $seq.full
+status=0
diff --git a/tests/qemu-iotests/058.out b/tests/qemu-iotests/058.out
new file mode 100644
index 0000000..9a69379
--- /dev/null
+++ b/tests/qemu-iotests/058.out
@@ -0,0 +1,44 @@
+QA output created by 058
+
+== preparing image ==
+Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
+wrote 4096/4096 bytes at offset 4096
+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+wrote 4096/4096 bytes at offset 8192
+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+wrote 4096/4096 bytes at offset 4096
+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+wrote 4096/4096 bytes at offset 8192
+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+No errors were found on the image.
+
+== verifying the image file with patterns ==
+read 4096/4096 bytes at offset 4096
+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+read 4096/4096 bytes at offset 8192
+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+
+== verifying the exported snapshot with patterns, method 1 ==
+read 4096/4096 bytes at offset 4096
+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+read 4096/4096 bytes at offset 8192
+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+
+== verifying the exported snapshot with patterns, method 2 ==
+read 4096/4096 bytes at offset 4096
+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+read 4096/4096 bytes at offset 8192
+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+
+== verifying the converted snapshot with patterns, method 1 ==
+read 4096/4096 bytes at offset 4096
+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+read 4096/4096 bytes at offset 8192
+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+
+== verifying the converted snapshot with patterns, method 2 ==
+read 4096/4096 bytes at offset 4096
+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+read 4096/4096 bytes at offset 8192
+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+*** done
diff --git a/tests/qemu-iotests/059 b/tests/qemu-iotests/059
index 4926645..73941c3 100755
--- a/tests/qemu-iotests/059
+++ b/tests/qemu-iotests/059
@@ -76,6 +76,11 @@ echo "=== Testing monolithicFlat with zeroed_grain ==="
IMGOPTS="subformat=monolithicFlat,zeroed_grain=on" _make_test_img 2G
echo
+echo "=== Testing big twoGbMaxExtentFlat ==="
+IMGOPTS="subformat=twoGbMaxExtentFlat" _make_test_img 1000G
+$QEMU_IMG info $TEST_IMG | _filter_testdir | sed -e 's/cid: [0-9]*/cid: XXXXXXXX/'
+
+echo
echo "=== Testing version 3 ==="
_use_sample_img iotest-version3.vmdk.bz2
_img_info
diff --git a/tests/qemu-iotests/059.out b/tests/qemu-iotests/059.out
index 0aadd56..4ff935c 100644
--- a/tests/qemu-iotests/059.out
+++ b/tests/qemu-iotests/059.out
@@ -26,6 +26,2018 @@ virtual size: 2.0G (2147483648 bytes)
qemu-img: TEST_DIR/t.IMGFMT: Flat image can't enable zeroed grain
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=2147483648
+=== Testing big twoGbMaxExtentFlat ===
+Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824000
+image: TEST_DIR/t.vmdk
+file format: vmdk
+virtual size: 1.0T (1073741824000 bytes)
+disk size: 16K
+Format specific information:
+ cid: XXXXXXXX
+ parent cid: XXXXXXXX
+ create type: twoGbMaxExtentFlat
+ extents:
+ [0]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f001.vmdk
+ format: FLAT
+ [1]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f002.vmdk
+ format: FLAT
+ [2]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f003.vmdk
+ format: FLAT
+ [3]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f004.vmdk
+ format: FLAT
+ [4]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f005.vmdk
+ format: FLAT
+ [5]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f006.vmdk
+ format: FLAT
+ [6]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f007.vmdk
+ format: FLAT
+ [7]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f008.vmdk
+ format: FLAT
+ [8]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f009.vmdk
+ format: FLAT
+ [9]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f010.vmdk
+ format: FLAT
+ [10]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f011.vmdk
+ format: FLAT
+ [11]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f012.vmdk
+ format: FLAT
+ [12]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f013.vmdk
+ format: FLAT
+ [13]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f014.vmdk
+ format: FLAT
+ [14]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f015.vmdk
+ format: FLAT
+ [15]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f016.vmdk
+ format: FLAT
+ [16]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f017.vmdk
+ format: FLAT
+ [17]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f018.vmdk
+ format: FLAT
+ [18]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f019.vmdk
+ format: FLAT
+ [19]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f020.vmdk
+ format: FLAT
+ [20]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f021.vmdk
+ format: FLAT
+ [21]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f022.vmdk
+ format: FLAT
+ [22]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f023.vmdk
+ format: FLAT
+ [23]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f024.vmdk
+ format: FLAT
+ [24]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f025.vmdk
+ format: FLAT
+ [25]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f026.vmdk
+ format: FLAT
+ [26]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f027.vmdk
+ format: FLAT
+ [27]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f028.vmdk
+ format: FLAT
+ [28]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f029.vmdk
+ format: FLAT
+ [29]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f030.vmdk
+ format: FLAT
+ [30]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f031.vmdk
+ format: FLAT
+ [31]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f032.vmdk
+ format: FLAT
+ [32]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f033.vmdk
+ format: FLAT
+ [33]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f034.vmdk
+ format: FLAT
+ [34]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f035.vmdk
+ format: FLAT
+ [35]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f036.vmdk
+ format: FLAT
+ [36]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f037.vmdk
+ format: FLAT
+ [37]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f038.vmdk
+ format: FLAT
+ [38]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f039.vmdk
+ format: FLAT
+ [39]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f040.vmdk
+ format: FLAT
+ [40]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f041.vmdk
+ format: FLAT
+ [41]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f042.vmdk
+ format: FLAT
+ [42]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f043.vmdk
+ format: FLAT
+ [43]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f044.vmdk
+ format: FLAT
+ [44]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f045.vmdk
+ format: FLAT
+ [45]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f046.vmdk
+ format: FLAT
+ [46]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f047.vmdk
+ format: FLAT
+ [47]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f048.vmdk
+ format: FLAT
+ [48]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f049.vmdk
+ format: FLAT
+ [49]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f050.vmdk
+ format: FLAT
+ [50]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f051.vmdk
+ format: FLAT
+ [51]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f052.vmdk
+ format: FLAT
+ [52]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f053.vmdk
+ format: FLAT
+ [53]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f054.vmdk
+ format: FLAT
+ [54]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f055.vmdk
+ format: FLAT
+ [55]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f056.vmdk
+ format: FLAT
+ [56]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f057.vmdk
+ format: FLAT
+ [57]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f058.vmdk
+ format: FLAT
+ [58]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f059.vmdk
+ format: FLAT
+ [59]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f060.vmdk
+ format: FLAT
+ [60]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f061.vmdk
+ format: FLAT
+ [61]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f062.vmdk
+ format: FLAT
+ [62]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f063.vmdk
+ format: FLAT
+ [63]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f064.vmdk
+ format: FLAT
+ [64]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f065.vmdk
+ format: FLAT
+ [65]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f066.vmdk
+ format: FLAT
+ [66]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f067.vmdk
+ format: FLAT
+ [67]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f068.vmdk
+ format: FLAT
+ [68]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f069.vmdk
+ format: FLAT
+ [69]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f070.vmdk
+ format: FLAT
+ [70]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f071.vmdk
+ format: FLAT
+ [71]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f072.vmdk
+ format: FLAT
+ [72]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f073.vmdk
+ format: FLAT
+ [73]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f074.vmdk
+ format: FLAT
+ [74]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f075.vmdk
+ format: FLAT
+ [75]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f076.vmdk
+ format: FLAT
+ [76]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f077.vmdk
+ format: FLAT
+ [77]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f078.vmdk
+ format: FLAT
+ [78]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f079.vmdk
+ format: FLAT
+ [79]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f080.vmdk
+ format: FLAT
+ [80]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f081.vmdk
+ format: FLAT
+ [81]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f082.vmdk
+ format: FLAT
+ [82]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f083.vmdk
+ format: FLAT
+ [83]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f084.vmdk
+ format: FLAT
+ [84]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f085.vmdk
+ format: FLAT
+ [85]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f086.vmdk
+ format: FLAT
+ [86]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f087.vmdk
+ format: FLAT
+ [87]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f088.vmdk
+ format: FLAT
+ [88]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f089.vmdk
+ format: FLAT
+ [89]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f090.vmdk
+ format: FLAT
+ [90]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f091.vmdk
+ format: FLAT
+ [91]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f092.vmdk
+ format: FLAT
+ [92]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f093.vmdk
+ format: FLAT
+ [93]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f094.vmdk
+ format: FLAT
+ [94]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f095.vmdk
+ format: FLAT
+ [95]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f096.vmdk
+ format: FLAT
+ [96]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f097.vmdk
+ format: FLAT
+ [97]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f098.vmdk
+ format: FLAT
+ [98]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f099.vmdk
+ format: FLAT
+ [99]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f100.vmdk
+ format: FLAT
+ [100]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f101.vmdk
+ format: FLAT
+ [101]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f102.vmdk
+ format: FLAT
+ [102]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f103.vmdk
+ format: FLAT
+ [103]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f104.vmdk
+ format: FLAT
+ [104]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f105.vmdk
+ format: FLAT
+ [105]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f106.vmdk
+ format: FLAT
+ [106]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f107.vmdk
+ format: FLAT
+ [107]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f108.vmdk
+ format: FLAT
+ [108]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f109.vmdk
+ format: FLAT
+ [109]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f110.vmdk
+ format: FLAT
+ [110]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f111.vmdk
+ format: FLAT
+ [111]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f112.vmdk
+ format: FLAT
+ [112]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f113.vmdk
+ format: FLAT
+ [113]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f114.vmdk
+ format: FLAT
+ [114]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f115.vmdk
+ format: FLAT
+ [115]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f116.vmdk
+ format: FLAT
+ [116]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f117.vmdk
+ format: FLAT
+ [117]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f118.vmdk
+ format: FLAT
+ [118]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f119.vmdk
+ format: FLAT
+ [119]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f120.vmdk
+ format: FLAT
+ [120]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f121.vmdk
+ format: FLAT
+ [121]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f122.vmdk
+ format: FLAT
+ [122]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f123.vmdk
+ format: FLAT
+ [123]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f124.vmdk
+ format: FLAT
+ [124]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f125.vmdk
+ format: FLAT
+ [125]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f126.vmdk
+ format: FLAT
+ [126]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f127.vmdk
+ format: FLAT
+ [127]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f128.vmdk
+ format: FLAT
+ [128]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f129.vmdk
+ format: FLAT
+ [129]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f130.vmdk
+ format: FLAT
+ [130]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f131.vmdk
+ format: FLAT
+ [131]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f132.vmdk
+ format: FLAT
+ [132]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f133.vmdk
+ format: FLAT
+ [133]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f134.vmdk
+ format: FLAT
+ [134]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f135.vmdk
+ format: FLAT
+ [135]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f136.vmdk
+ format: FLAT
+ [136]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f137.vmdk
+ format: FLAT
+ [137]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f138.vmdk
+ format: FLAT
+ [138]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f139.vmdk
+ format: FLAT
+ [139]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f140.vmdk
+ format: FLAT
+ [140]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f141.vmdk
+ format: FLAT
+ [141]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f142.vmdk
+ format: FLAT
+ [142]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f143.vmdk
+ format: FLAT
+ [143]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f144.vmdk
+ format: FLAT
+ [144]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f145.vmdk
+ format: FLAT
+ [145]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f146.vmdk
+ format: FLAT
+ [146]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f147.vmdk
+ format: FLAT
+ [147]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f148.vmdk
+ format: FLAT
+ [148]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f149.vmdk
+ format: FLAT
+ [149]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f150.vmdk
+ format: FLAT
+ [150]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f151.vmdk
+ format: FLAT
+ [151]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f152.vmdk
+ format: FLAT
+ [152]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f153.vmdk
+ format: FLAT
+ [153]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f154.vmdk
+ format: FLAT
+ [154]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f155.vmdk
+ format: FLAT
+ [155]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f156.vmdk
+ format: FLAT
+ [156]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f157.vmdk
+ format: FLAT
+ [157]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f158.vmdk
+ format: FLAT
+ [158]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f159.vmdk
+ format: FLAT
+ [159]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f160.vmdk
+ format: FLAT
+ [160]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f161.vmdk
+ format: FLAT
+ [161]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f162.vmdk
+ format: FLAT
+ [162]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f163.vmdk
+ format: FLAT
+ [163]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f164.vmdk
+ format: FLAT
+ [164]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f165.vmdk
+ format: FLAT
+ [165]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f166.vmdk
+ format: FLAT
+ [166]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f167.vmdk
+ format: FLAT
+ [167]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f168.vmdk
+ format: FLAT
+ [168]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f169.vmdk
+ format: FLAT
+ [169]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f170.vmdk
+ format: FLAT
+ [170]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f171.vmdk
+ format: FLAT
+ [171]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f172.vmdk
+ format: FLAT
+ [172]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f173.vmdk
+ format: FLAT
+ [173]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f174.vmdk
+ format: FLAT
+ [174]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f175.vmdk
+ format: FLAT
+ [175]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f176.vmdk
+ format: FLAT
+ [176]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f177.vmdk
+ format: FLAT
+ [177]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f178.vmdk
+ format: FLAT
+ [178]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f179.vmdk
+ format: FLAT
+ [179]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f180.vmdk
+ format: FLAT
+ [180]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f181.vmdk
+ format: FLAT
+ [181]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f182.vmdk
+ format: FLAT
+ [182]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f183.vmdk
+ format: FLAT
+ [183]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f184.vmdk
+ format: FLAT
+ [184]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f185.vmdk
+ format: FLAT
+ [185]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f186.vmdk
+ format: FLAT
+ [186]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f187.vmdk
+ format: FLAT
+ [187]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f188.vmdk
+ format: FLAT
+ [188]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f189.vmdk
+ format: FLAT
+ [189]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f190.vmdk
+ format: FLAT
+ [190]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f191.vmdk
+ format: FLAT
+ [191]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f192.vmdk
+ format: FLAT
+ [192]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f193.vmdk
+ format: FLAT
+ [193]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f194.vmdk
+ format: FLAT
+ [194]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f195.vmdk
+ format: FLAT
+ [195]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f196.vmdk
+ format: FLAT
+ [196]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f197.vmdk
+ format: FLAT
+ [197]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f198.vmdk
+ format: FLAT
+ [198]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f199.vmdk
+ format: FLAT
+ [199]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f200.vmdk
+ format: FLAT
+ [200]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f201.vmdk
+ format: FLAT
+ [201]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f202.vmdk
+ format: FLAT
+ [202]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f203.vmdk
+ format: FLAT
+ [203]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f204.vmdk
+ format: FLAT
+ [204]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f205.vmdk
+ format: FLAT
+ [205]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f206.vmdk
+ format: FLAT
+ [206]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f207.vmdk
+ format: FLAT
+ [207]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f208.vmdk
+ format: FLAT
+ [208]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f209.vmdk
+ format: FLAT
+ [209]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f210.vmdk
+ format: FLAT
+ [210]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f211.vmdk
+ format: FLAT
+ [211]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f212.vmdk
+ format: FLAT
+ [212]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f213.vmdk
+ format: FLAT
+ [213]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f214.vmdk
+ format: FLAT
+ [214]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f215.vmdk
+ format: FLAT
+ [215]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f216.vmdk
+ format: FLAT
+ [216]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f217.vmdk
+ format: FLAT
+ [217]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f218.vmdk
+ format: FLAT
+ [218]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f219.vmdk
+ format: FLAT
+ [219]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f220.vmdk
+ format: FLAT
+ [220]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f221.vmdk
+ format: FLAT
+ [221]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f222.vmdk
+ format: FLAT
+ [222]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f223.vmdk
+ format: FLAT
+ [223]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f224.vmdk
+ format: FLAT
+ [224]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f225.vmdk
+ format: FLAT
+ [225]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f226.vmdk
+ format: FLAT
+ [226]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f227.vmdk
+ format: FLAT
+ [227]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f228.vmdk
+ format: FLAT
+ [228]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f229.vmdk
+ format: FLAT
+ [229]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f230.vmdk
+ format: FLAT
+ [230]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f231.vmdk
+ format: FLAT
+ [231]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f232.vmdk
+ format: FLAT
+ [232]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f233.vmdk
+ format: FLAT
+ [233]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f234.vmdk
+ format: FLAT
+ [234]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f235.vmdk
+ format: FLAT
+ [235]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f236.vmdk
+ format: FLAT
+ [236]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f237.vmdk
+ format: FLAT
+ [237]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f238.vmdk
+ format: FLAT
+ [238]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f239.vmdk
+ format: FLAT
+ [239]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f240.vmdk
+ format: FLAT
+ [240]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f241.vmdk
+ format: FLAT
+ [241]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f242.vmdk
+ format: FLAT
+ [242]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f243.vmdk
+ format: FLAT
+ [243]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f244.vmdk
+ format: FLAT
+ [244]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f245.vmdk
+ format: FLAT
+ [245]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f246.vmdk
+ format: FLAT
+ [246]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f247.vmdk
+ format: FLAT
+ [247]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f248.vmdk
+ format: FLAT
+ [248]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f249.vmdk
+ format: FLAT
+ [249]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f250.vmdk
+ format: FLAT
+ [250]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f251.vmdk
+ format: FLAT
+ [251]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f252.vmdk
+ format: FLAT
+ [252]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f253.vmdk
+ format: FLAT
+ [253]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f254.vmdk
+ format: FLAT
+ [254]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f255.vmdk
+ format: FLAT
+ [255]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f256.vmdk
+ format: FLAT
+ [256]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f257.vmdk
+ format: FLAT
+ [257]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f258.vmdk
+ format: FLAT
+ [258]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f259.vmdk
+ format: FLAT
+ [259]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f260.vmdk
+ format: FLAT
+ [260]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f261.vmdk
+ format: FLAT
+ [261]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f262.vmdk
+ format: FLAT
+ [262]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f263.vmdk
+ format: FLAT
+ [263]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f264.vmdk
+ format: FLAT
+ [264]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f265.vmdk
+ format: FLAT
+ [265]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f266.vmdk
+ format: FLAT
+ [266]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f267.vmdk
+ format: FLAT
+ [267]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f268.vmdk
+ format: FLAT
+ [268]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f269.vmdk
+ format: FLAT
+ [269]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f270.vmdk
+ format: FLAT
+ [270]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f271.vmdk
+ format: FLAT
+ [271]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f272.vmdk
+ format: FLAT
+ [272]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f273.vmdk
+ format: FLAT
+ [273]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f274.vmdk
+ format: FLAT
+ [274]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f275.vmdk
+ format: FLAT
+ [275]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f276.vmdk
+ format: FLAT
+ [276]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f277.vmdk
+ format: FLAT
+ [277]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f278.vmdk
+ format: FLAT
+ [278]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f279.vmdk
+ format: FLAT
+ [279]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f280.vmdk
+ format: FLAT
+ [280]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f281.vmdk
+ format: FLAT
+ [281]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f282.vmdk
+ format: FLAT
+ [282]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f283.vmdk
+ format: FLAT
+ [283]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f284.vmdk
+ format: FLAT
+ [284]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f285.vmdk
+ format: FLAT
+ [285]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f286.vmdk
+ format: FLAT
+ [286]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f287.vmdk
+ format: FLAT
+ [287]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f288.vmdk
+ format: FLAT
+ [288]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f289.vmdk
+ format: FLAT
+ [289]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f290.vmdk
+ format: FLAT
+ [290]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f291.vmdk
+ format: FLAT
+ [291]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f292.vmdk
+ format: FLAT
+ [292]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f293.vmdk
+ format: FLAT
+ [293]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f294.vmdk
+ format: FLAT
+ [294]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f295.vmdk
+ format: FLAT
+ [295]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f296.vmdk
+ format: FLAT
+ [296]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f297.vmdk
+ format: FLAT
+ [297]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f298.vmdk
+ format: FLAT
+ [298]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f299.vmdk
+ format: FLAT
+ [299]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f300.vmdk
+ format: FLAT
+ [300]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f301.vmdk
+ format: FLAT
+ [301]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f302.vmdk
+ format: FLAT
+ [302]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f303.vmdk
+ format: FLAT
+ [303]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f304.vmdk
+ format: FLAT
+ [304]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f305.vmdk
+ format: FLAT
+ [305]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f306.vmdk
+ format: FLAT
+ [306]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f307.vmdk
+ format: FLAT
+ [307]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f308.vmdk
+ format: FLAT
+ [308]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f309.vmdk
+ format: FLAT
+ [309]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f310.vmdk
+ format: FLAT
+ [310]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f311.vmdk
+ format: FLAT
+ [311]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f312.vmdk
+ format: FLAT
+ [312]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f313.vmdk
+ format: FLAT
+ [313]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f314.vmdk
+ format: FLAT
+ [314]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f315.vmdk
+ format: FLAT
+ [315]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f316.vmdk
+ format: FLAT
+ [316]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f317.vmdk
+ format: FLAT
+ [317]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f318.vmdk
+ format: FLAT
+ [318]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f319.vmdk
+ format: FLAT
+ [319]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f320.vmdk
+ format: FLAT
+ [320]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f321.vmdk
+ format: FLAT
+ [321]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f322.vmdk
+ format: FLAT
+ [322]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f323.vmdk
+ format: FLAT
+ [323]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f324.vmdk
+ format: FLAT
+ [324]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f325.vmdk
+ format: FLAT
+ [325]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f326.vmdk
+ format: FLAT
+ [326]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f327.vmdk
+ format: FLAT
+ [327]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f328.vmdk
+ format: FLAT
+ [328]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f329.vmdk
+ format: FLAT
+ [329]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f330.vmdk
+ format: FLAT
+ [330]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f331.vmdk
+ format: FLAT
+ [331]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f332.vmdk
+ format: FLAT
+ [332]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f333.vmdk
+ format: FLAT
+ [333]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f334.vmdk
+ format: FLAT
+ [334]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f335.vmdk
+ format: FLAT
+ [335]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f336.vmdk
+ format: FLAT
+ [336]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f337.vmdk
+ format: FLAT
+ [337]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f338.vmdk
+ format: FLAT
+ [338]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f339.vmdk
+ format: FLAT
+ [339]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f340.vmdk
+ format: FLAT
+ [340]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f341.vmdk
+ format: FLAT
+ [341]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f342.vmdk
+ format: FLAT
+ [342]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f343.vmdk
+ format: FLAT
+ [343]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f344.vmdk
+ format: FLAT
+ [344]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f345.vmdk
+ format: FLAT
+ [345]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f346.vmdk
+ format: FLAT
+ [346]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f347.vmdk
+ format: FLAT
+ [347]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f348.vmdk
+ format: FLAT
+ [348]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f349.vmdk
+ format: FLAT
+ [349]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f350.vmdk
+ format: FLAT
+ [350]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f351.vmdk
+ format: FLAT
+ [351]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f352.vmdk
+ format: FLAT
+ [352]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f353.vmdk
+ format: FLAT
+ [353]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f354.vmdk
+ format: FLAT
+ [354]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f355.vmdk
+ format: FLAT
+ [355]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f356.vmdk
+ format: FLAT
+ [356]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f357.vmdk
+ format: FLAT
+ [357]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f358.vmdk
+ format: FLAT
+ [358]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f359.vmdk
+ format: FLAT
+ [359]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f360.vmdk
+ format: FLAT
+ [360]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f361.vmdk
+ format: FLAT
+ [361]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f362.vmdk
+ format: FLAT
+ [362]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f363.vmdk
+ format: FLAT
+ [363]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f364.vmdk
+ format: FLAT
+ [364]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f365.vmdk
+ format: FLAT
+ [365]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f366.vmdk
+ format: FLAT
+ [366]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f367.vmdk
+ format: FLAT
+ [367]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f368.vmdk
+ format: FLAT
+ [368]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f369.vmdk
+ format: FLAT
+ [369]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f370.vmdk
+ format: FLAT
+ [370]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f371.vmdk
+ format: FLAT
+ [371]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f372.vmdk
+ format: FLAT
+ [372]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f373.vmdk
+ format: FLAT
+ [373]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f374.vmdk
+ format: FLAT
+ [374]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f375.vmdk
+ format: FLAT
+ [375]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f376.vmdk
+ format: FLAT
+ [376]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f377.vmdk
+ format: FLAT
+ [377]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f378.vmdk
+ format: FLAT
+ [378]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f379.vmdk
+ format: FLAT
+ [379]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f380.vmdk
+ format: FLAT
+ [380]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f381.vmdk
+ format: FLAT
+ [381]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f382.vmdk
+ format: FLAT
+ [382]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f383.vmdk
+ format: FLAT
+ [383]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f384.vmdk
+ format: FLAT
+ [384]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f385.vmdk
+ format: FLAT
+ [385]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f386.vmdk
+ format: FLAT
+ [386]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f387.vmdk
+ format: FLAT
+ [387]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f388.vmdk
+ format: FLAT
+ [388]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f389.vmdk
+ format: FLAT
+ [389]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f390.vmdk
+ format: FLAT
+ [390]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f391.vmdk
+ format: FLAT
+ [391]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f392.vmdk
+ format: FLAT
+ [392]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f393.vmdk
+ format: FLAT
+ [393]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f394.vmdk
+ format: FLAT
+ [394]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f395.vmdk
+ format: FLAT
+ [395]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f396.vmdk
+ format: FLAT
+ [396]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f397.vmdk
+ format: FLAT
+ [397]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f398.vmdk
+ format: FLAT
+ [398]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f399.vmdk
+ format: FLAT
+ [399]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f400.vmdk
+ format: FLAT
+ [400]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f401.vmdk
+ format: FLAT
+ [401]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f402.vmdk
+ format: FLAT
+ [402]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f403.vmdk
+ format: FLAT
+ [403]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f404.vmdk
+ format: FLAT
+ [404]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f405.vmdk
+ format: FLAT
+ [405]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f406.vmdk
+ format: FLAT
+ [406]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f407.vmdk
+ format: FLAT
+ [407]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f408.vmdk
+ format: FLAT
+ [408]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f409.vmdk
+ format: FLAT
+ [409]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f410.vmdk
+ format: FLAT
+ [410]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f411.vmdk
+ format: FLAT
+ [411]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f412.vmdk
+ format: FLAT
+ [412]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f413.vmdk
+ format: FLAT
+ [413]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f414.vmdk
+ format: FLAT
+ [414]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f415.vmdk
+ format: FLAT
+ [415]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f416.vmdk
+ format: FLAT
+ [416]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f417.vmdk
+ format: FLAT
+ [417]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f418.vmdk
+ format: FLAT
+ [418]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f419.vmdk
+ format: FLAT
+ [419]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f420.vmdk
+ format: FLAT
+ [420]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f421.vmdk
+ format: FLAT
+ [421]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f422.vmdk
+ format: FLAT
+ [422]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f423.vmdk
+ format: FLAT
+ [423]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f424.vmdk
+ format: FLAT
+ [424]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f425.vmdk
+ format: FLAT
+ [425]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f426.vmdk
+ format: FLAT
+ [426]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f427.vmdk
+ format: FLAT
+ [427]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f428.vmdk
+ format: FLAT
+ [428]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f429.vmdk
+ format: FLAT
+ [429]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f430.vmdk
+ format: FLAT
+ [430]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f431.vmdk
+ format: FLAT
+ [431]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f432.vmdk
+ format: FLAT
+ [432]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f433.vmdk
+ format: FLAT
+ [433]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f434.vmdk
+ format: FLAT
+ [434]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f435.vmdk
+ format: FLAT
+ [435]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f436.vmdk
+ format: FLAT
+ [436]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f437.vmdk
+ format: FLAT
+ [437]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f438.vmdk
+ format: FLAT
+ [438]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f439.vmdk
+ format: FLAT
+ [439]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f440.vmdk
+ format: FLAT
+ [440]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f441.vmdk
+ format: FLAT
+ [441]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f442.vmdk
+ format: FLAT
+ [442]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f443.vmdk
+ format: FLAT
+ [443]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f444.vmdk
+ format: FLAT
+ [444]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f445.vmdk
+ format: FLAT
+ [445]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f446.vmdk
+ format: FLAT
+ [446]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f447.vmdk
+ format: FLAT
+ [447]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f448.vmdk
+ format: FLAT
+ [448]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f449.vmdk
+ format: FLAT
+ [449]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f450.vmdk
+ format: FLAT
+ [450]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f451.vmdk
+ format: FLAT
+ [451]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f452.vmdk
+ format: FLAT
+ [452]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f453.vmdk
+ format: FLAT
+ [453]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f454.vmdk
+ format: FLAT
+ [454]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f455.vmdk
+ format: FLAT
+ [455]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f456.vmdk
+ format: FLAT
+ [456]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f457.vmdk
+ format: FLAT
+ [457]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f458.vmdk
+ format: FLAT
+ [458]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f459.vmdk
+ format: FLAT
+ [459]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f460.vmdk
+ format: FLAT
+ [460]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f461.vmdk
+ format: FLAT
+ [461]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f462.vmdk
+ format: FLAT
+ [462]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f463.vmdk
+ format: FLAT
+ [463]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f464.vmdk
+ format: FLAT
+ [464]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f465.vmdk
+ format: FLAT
+ [465]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f466.vmdk
+ format: FLAT
+ [466]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f467.vmdk
+ format: FLAT
+ [467]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f468.vmdk
+ format: FLAT
+ [468]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f469.vmdk
+ format: FLAT
+ [469]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f470.vmdk
+ format: FLAT
+ [470]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f471.vmdk
+ format: FLAT
+ [471]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f472.vmdk
+ format: FLAT
+ [472]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f473.vmdk
+ format: FLAT
+ [473]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f474.vmdk
+ format: FLAT
+ [474]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f475.vmdk
+ format: FLAT
+ [475]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f476.vmdk
+ format: FLAT
+ [476]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f477.vmdk
+ format: FLAT
+ [477]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f478.vmdk
+ format: FLAT
+ [478]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f479.vmdk
+ format: FLAT
+ [479]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f480.vmdk
+ format: FLAT
+ [480]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f481.vmdk
+ format: FLAT
+ [481]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f482.vmdk
+ format: FLAT
+ [482]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f483.vmdk
+ format: FLAT
+ [483]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f484.vmdk
+ format: FLAT
+ [484]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f485.vmdk
+ format: FLAT
+ [485]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f486.vmdk
+ format: FLAT
+ [486]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f487.vmdk
+ format: FLAT
+ [487]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f488.vmdk
+ format: FLAT
+ [488]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f489.vmdk
+ format: FLAT
+ [489]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f490.vmdk
+ format: FLAT
+ [490]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f491.vmdk
+ format: FLAT
+ [491]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f492.vmdk
+ format: FLAT
+ [492]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f493.vmdk
+ format: FLAT
+ [493]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f494.vmdk
+ format: FLAT
+ [494]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f495.vmdk
+ format: FLAT
+ [495]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f496.vmdk
+ format: FLAT
+ [496]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f497.vmdk
+ format: FLAT
+ [497]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f498.vmdk
+ format: FLAT
+ [498]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f499.vmdk
+ format: FLAT
+ [499]:
+ virtual size: 2147483648
+ filename: TEST_DIR/t-f500.vmdk
+ format: FLAT
+
=== Testing version 3 ===
image: TEST_DIR/iotest-version3.IMGFMT
file format: IMGFMT
diff --git a/tests/qemu-iotests/074 b/tests/qemu-iotests/074
new file mode 100755
index 0000000..aba126c
--- /dev/null
+++ b/tests/qemu-iotests/074
@@ -0,0 +1,86 @@
+#!/bin/bash
+##
+## qemu-img compare test (qcow2 only ones)
+##
+##
+## Copyright (C) 2013 Red Hat, Inc.
+##
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+##
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program. If not, see <http://www.gnu.org/licenses/>.
+##
+#
+# creator
+owner=famz@redhat.com
+
+seq=`basename $0`
+echo "QA output created by $seq"
+
+status=1 # failure is the default!
+
+_cleanup()
+{
+ echo "Cleanup"
+ _cleanup_test_img
+ rm "${TEST_IMG2}"
+}
+trap "_cleanup; exit \$status" 0 1 2 3 15
+
+_compare()
+{
+ $QEMU_IMG compare "$@" "$TEST_IMG" "${TEST_IMG2}"
+ echo $?
+}
+
+# get standard environment, filters and checks
+. ./common.rc
+. ./common.filter
+. ./common.pattern
+
+_supported_fmt qcow2
+_supported_proto file
+_supported_os Linux
+
+# Setup test basic parameters
+TEST_IMG2=$TEST_IMG.2
+CLUSTER_SIZE=4096
+size=1024M
+
+# Test cluster allocated in one, with IO error
+cat > "$TEST_DIR/blkdebug.conf"<<EOF
+[inject-error]
+event = "read_aio"
+errno = "5"
+once ="off"
+EOF
+_make_test_img $size
+cp "$TEST_IMG" "$TEST_IMG2"
+io_pattern write 512 512 0 1 102
+TEST_IMG="blkdebug:$TEST_DIR/blkdebug.conf:$TEST_IMG" _compare 2>&1 |\
+ _filter_testdir | _filter_imgfmt
+
+# Test cluster allocated in one, with different sizes and IO error in the part
+# that exists only in one image
+cat > "$TEST_DIR/blkdebug.conf"<<EOF
+[inject-error]
+event = "read_aio"
+errno = "5"
+once ="off"
+EOF
+_make_test_img $size
+TEST_IMG="$TEST_IMG2" _make_test_img 0
+io_pattern write 512 512 0 1 102
+TEST_IMG="blkdebug:$TEST_DIR/blkdebug.conf:$TEST_IMG" _compare 2>&1 |\
+ _filter_testdir | _filter_imgfmt
+
+# Cleanup
+status=0
diff --git a/tests/qemu-iotests/074.out b/tests/qemu-iotests/074.out
new file mode 100644
index 0000000..8fba5ae
--- /dev/null
+++ b/tests/qemu-iotests/074.out
@@ -0,0 +1,18 @@
+QA output created by 074
+Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824
+=== IO: pattern 102
+wrote 512/512 bytes at offset 512
+512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+qemu-img: Error while reading offset 0 of blkdebug:TEST_DIR/blkdebug.conf:TEST_DIR/t.IMGFMT: Input/output error
+qemu-img: Error while reading offset 0: Input/output error
+4
+Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824
+Formatting 'TEST_DIR/t.IMGFMT.2', fmt=IMGFMT size=0
+=== IO: pattern 102
+wrote 512/512 bytes at offset 512
+512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+qemu-img: Error while reading offset 0 of blkdebug:TEST_DIR/blkdebug.conf:TEST_DIR/t.IMGFMT: Input/output error
+qemu-img: Error while reading offset 0 of blkdebug:TEST_DIR/blkdebug.conf:TEST_DIR/t.IMGFMT: Input/output error
+Warning: Image size mismatch!
+4
+Cleanup
diff --git a/tests/qemu-iotests/check b/tests/qemu-iotests/check
index f5f328f..e2ed5a9 100755
--- a/tests/qemu-iotests/check
+++ b/tests/qemu-iotests/check
@@ -161,6 +161,7 @@ cat <<EOF
QEMU -- $QEMU
QEMU_IMG -- $QEMU_IMG
QEMU_IO -- $QEMU_IO
+QEMU_NBD -- $QEMU_NBD
IMGFMT -- $FULL_IMGFMT_DETAILS
IMGPROTO -- $FULL_IMGPROTO_DETAILS
PLATFORM -- $FULL_HOST_DETAILS
@@ -242,7 +243,7 @@ do
fi
reference=$seq.out
- if (echo $QEMU_IO_OPTIONS | grep -s -- '--nocache' > /dev/null); then
+ if [ "$CACHEMODE" = "none" ]; then
[ -f $seq.out.nocache ] && reference=$seq.out.nocache
fi
diff --git a/tests/qemu-iotests/common b/tests/qemu-iotests/common
index 8cde7f1..8b4e22c 100644
--- a/tests/qemu-iotests/common
+++ b/tests/qemu-iotests/common
@@ -42,13 +42,16 @@ expunge=true
have_test_arg=false
randomize=false
valgrind=false
+cachemode=false
rm -f $tmp.list $tmp.tmp $tmp.sed
export IMGFMT=raw
export IMGFMT_GENERIC=true
export IMGPROTO=file
export IMGOPTS=""
+export CACHEMODE="writeback"
export QEMU_IO_OPTIONS=""
+export CACHEMODE_IS_DEFAULT=true
for r
do
@@ -113,7 +116,12 @@ s/ .*//p
IMGOPTS="$r"
imgopts=false
continue
-
+ elif $cachemode
+ then
+ CACHEMODE="$r"
+ CACHEMODE_IS_DEFAULT=false
+ cachemode=false
+ continue
fi
xpand=true
@@ -124,7 +132,7 @@ s/ .*//p
echo "Usage: $0 [options] [testlist]"'
common options
- -v verbose
+ -v verbose
check options
-raw test raw (default)
@@ -140,19 +148,20 @@ check options
-sheepdog test sheepdog
-nbd test nbd
-ssh test ssh
- -xdiff graphical mode diff
- -nocache use O_DIRECT on backing file
- -misalign misalign memory allocations
- -n show me, do not run tests
+ -xdiff graphical mode diff
+ -nocache use O_DIRECT on backing file
+ -misalign misalign memory allocations
+ -n show me, do not run tests
-o options -o options to pass to qemu-img create/convert
- -T output timestamps
- -r randomize test order
+ -T output timestamps
+ -r randomize test order
+ -c mode cache mode
testlist options
-g group[,group...] include tests from these groups
-x group[,group...] exclude tests from these groups
NNN include test NNN
- NNN-NNN include test range (eg. 012-021)
+ NNN-NNN include test range (eg. 012-021)
'
exit 0
;;
@@ -219,7 +228,8 @@ testlist options
xpand=false
;;
-nocache)
- QEMU_IO_OPTIONS="$QEMU_IO_OPTIONS --nocache"
+ CACHEMODE="none"
+ CACHEMODE_IS_DEFAULT=false
xpand=false
;;
@@ -258,6 +268,10 @@ testlist options
imgopts=true
xpand=false
;;
+ -c)
+ cachemode=true
+ xpand=false
+ ;;
-r) # randomize test order
randomize=true
xpand=false
@@ -334,6 +348,9 @@ BEGIN { for (t='$start'; t<='$end'; t++) printf "%03d\n",t }' \
done
+# Set qemu-io cache mode with $CACHEMODE we have
+QEMU_IO_OPTIONS="$QEMU_IO_OPTIONS --cache $CACHEMODE"
+
# Set default options for qemu-img create -o if they were not specified
_set_default_imgopts
diff --git a/tests/qemu-iotests/common.filter b/tests/qemu-iotests/common.filter
index 9c82c77..776985d 100644
--- a/tests/qemu-iotests/common.filter
+++ b/tests/qemu-iotests/common.filter
@@ -157,7 +157,8 @@ _filter_qemu_io()
_filter_qemu()
{
sed -e "s#\\(^\\|(qemu) \\)$(basename $QEMU_PROG):#\1QEMU_PROG:#" \
- -e 's#^QEMU [0-9]\+\.[0-9]\+\.[0-9]\+ monitor#QEMU X.Y.Z monitor#'
+ -e 's#^QEMU [0-9]\+\.[0-9]\+\.[0-9]\+ monitor#QEMU X.Y.Z monitor#' \
+ -e $'s#\r##' # QEMU monitor uses \r\n line endings
}
# replace problematic QMP output like timestamps
diff --git a/tests/qemu-iotests/common.rc b/tests/qemu-iotests/common.rc
index 7f62457..28ba0d9 100644
--- a/tests/qemu-iotests/common.rc
+++ b/tests/qemu-iotests/common.rc
@@ -387,25 +387,31 @@ _supported_os()
_notrun "not suitable for this OS: $HOSTOS"
}
-_unsupported_qemu_io_options()
+_supported_cache_modes()
{
- for bad_opt
- do
- for opt in $QEMU_IO_OPTIONS
- do
- if [ "$bad_opt" = "$opt" ]
- then
- _notrun "not suitable for qemu-io option: $bad_opt"
- fi
- done
+ for mode; do
+ if [ "$mode" = "$CACHEMODE" ]; then
+ return
+ fi
done
+ _notrun "not suitable for cache mode: $CACHEMODE"
+}
+
+_default_cache_mode()
+{
+ if $CACHEMODE_IS_DEFAULT; then
+ CACHEMODE="$1"
+ QEMU_IO="$QEMU_IO --cache $1"
+ return
+ fi
}
# this test requires that a specified command (executable) exists
#
_require_command()
{
- [ -x "$1" ] || _notrun "$1 utility required, skipped this test"
+ eval c=\$$1
+ [ -x "$c" ] || _notrun "$1 utility required, skipped this test"
}
_full_imgfmt_details()
diff --git a/tests/qemu-iotests/group b/tests/qemu-iotests/group
index b63b18c..cc750c9 100644
--- a/tests/qemu-iotests/group
+++ b/tests/qemu-iotests/group
@@ -39,7 +39,7 @@
030 rw auto backing
031 rw auto quick
032 rw auto
-033 rw auto
+033 rw auto quick
034 rw auto backing
035 rw auto quick
036 rw auto quick
@@ -64,6 +64,7 @@
055 rw auto
056 rw auto backing
057 rw auto
+058 rw auto
059 rw auto
060 rw auto
061 rw auto
@@ -77,3 +78,4 @@
069 rw auto
070 rw auto
073 rw auto
+074 rw auto
diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py
index 10c9a99..e4fa9af 100644
--- a/tests/qemu-iotests/iotests.py
+++ b/tests/qemu-iotests/iotests.py
@@ -37,6 +37,7 @@ qemu_args = os.environ.get('QEMU', 'qemu').strip().split(' ')
imgfmt = os.environ.get('IMGFMT', 'raw')
imgproto = os.environ.get('IMGPROTO', 'file')
test_dir = os.environ.get('TEST_DIR', '/var/tmp')
+cachemode = os.environ.get('CACHEMODE')
socket_scm_helper = os.environ.get('SOCKET_SCM_HELPER', 'socket_scm_helper')
@@ -96,7 +97,7 @@ class VM(object):
'''Add a virtio-blk drive to the VM'''
options = ['if=virtio',
'format=%s' % imgfmt,
- 'cache=none',
+ 'cache=%s' % cachemode,
'file=%s' % path,
'id=drive%d' % self._num_drives]
if opts:
diff --git a/tests/test-aio.c b/tests/test-aio.c
index c4fe0fc..592721e 100644
--- a/tests/test-aio.c
+++ b/tests/test-aio.c
@@ -195,7 +195,6 @@ static void test_bh_delete_from_cb(void)
g_assert(data1.bh == NULL);
g_assert(!aio_poll(ctx, false));
- g_assert(!aio_poll(ctx, true));
}
static void test_bh_delete_from_cb_many(void)