Pretend that a non-implemented check is always successful and thus allow
various tests that were qcow2-specific before to be generic.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
. ./common.rc
. ./common.filter
-_supported_fmt qcow2
+_supported_fmt generic
_supported_os Linux
. ./common.rc
. ./common.filter
-_supported_fmt qcow2
+_supported_fmt generic
_supported_os Linux
. ./common.rc
. ./common.filter
-_supported_fmt qcow2
+_supported_fmt generic
_supported_os Linux
. ./common.pattern
# much of this could be generic for any format supporting compression.
-_supported_fmt qcow2
+_supported_fmt qcow qcow2
_supported_os Linux
TEST_OFFSETS="0 4294967296"
echo
mv $TEST_IMG $TEST_IMG.orig
-$QEMU_IMG convert -f qcow2 -O qcow2 -c $TEST_IMG.orig $TEST_IMG
+$QEMU_IMG convert -f $IMGFMT -O $IMGFMT -c $TEST_IMG.orig $TEST_IMG
echo "Testing compressed image"
echo
. ./common.filter
. ./common.pattern
-# much of this could be generic for any format supporting compression.
+# much of this could be generic for any format supporting snapshots
_supported_fmt qcow2
_supported_os Linux
. ./common.rc
. ./common.filter
-# currently only qcow2 allows for consistency checks using qemu-img
+# actually any format that supports snapshots
_supported_fmt qcow2
_supported_os Linux
io_pattern writev $((offset + 8 * 4096)) 4096 $((9 * 4096)) 256 165
mv $TEST_IMG $TEST_IMG.orig
- $QEMU_IMG convert -f qcow2 -O qcow2 -c $TEST_IMG.orig $TEST_IMG
+ $QEMU_IMG convert -f $IMGFMT -O $IMGFMT -c $TEST_IMG.orig $TEST_IMG
# Write the used clusters
echo === Used clusters [1]
_check_test_img()
{
- $QEMU_IMG check -f $IMGFMT $TEST_IMG
+ $QEMU_IMG check -f $IMGFMT $TEST_IMG 2>&1 | \
+ sed -e 's/qemu-img\: This image format does not support checks/No errors were found on the image./'
}
_get_pids_by_name()