-#!/bin/sh
+#!/bin/bash
#
# Nolan I qcow2 corruption - incorrectly reports free clusters
#
. ./common.filter
_supported_fmt generic
+_supported_proto generic
_supported_os Linux
echo
echo "creating pattern"
$QEMU_IO \
- -c "write 2048k 4k -P 65" \
+ -c "write -P 65 2048k 4k" \
-c "write 4k 4k" \
-c "write 9M 4k" \
- -c "read 2044k 8k -P 65 -s 4k -l 4k" \
-$TEST_IMG | _filter_qemu_io
+ -c "read -P 65 -s 4k -l 4k 2044k 8k" \
+"$TEST_IMG" | _filter_qemu_io
echo
echo "checking image for errors"