Revision 3da9c8fb

b/tests/qemu-iotests/019
60 60
    io writev $(( offset )) 512 1024 64
61 61

  
62 62
    # Complete backing clusters
63
    io writev $(( offset  + 1024 * 1024))  65536 65536 1
63
    io writev $(( offset  + 1024 * 1024))  $CLUSTER_SIZE $CLUSTER_SIZE 1
64 64
done
65 65
_check_test_img
66 66

  
......
78 78
    io writev $(( offset + 512 )) 512 1024 64
79 79

  
80 80
    # Complete test image clusters
81
    io writev $(( offset + 1024 * 1024 + 65536))  65536 65536 1
81
    io writev $(( offset + 1024 * 1024 + $CLUSTER_SIZE))  $CLUSTER_SIZE $CLUSTER_SIZE 1
82 82
done
83 83
_check_test_img
84 84

  
......
89 89
echo
90 90
for offset in $TEST_OFFSETS; do
91 91
    # Complete backing clusters
92
    is_allocated $(( offset  + 1024 * 1024))  65536 65536 1
92
    is_allocated $(( offset  + 1024 * 1024))  $CLUSTER_SIZE $CLUSTER_SIZE 1
93 93
done
94 94

  
95 95
echo "Reading"
......
101 101
    io readv $(( offset + 512 )) 512 1024 64
102 102

  
103 103
    # Complete test image clusters
104
    io readv $(( offset  + 1024 * 1024))  65536 65536 1
105
    io readv $(( offset + 1024 * 1024 + 65536))  65536 65536 1
104
    io readv $(( offset  + 1024 * 1024))  $CLUSTER_SIZE $CLUSTER_SIZE 1
105
    io readv $(( offset + 1024 * 1024 + $CLUSTER_SIZE))  $CLUSTER_SIZE $CLUSTER_SIZE 1
106 106

  
107 107
    # Empty sectors
108
    io_zero readv $(( offset + 1024 * 1024 + 65536 * 4 )) 65536 65536 1
108
    io_zero readv $(( offset + 1024 * 1024 + $CLUSTER_SIZE * 4 )) $CLUSTER_SIZE $CLUSTER_SIZE 1
109 109
done
110 110
_check_test_img
111 111

  

Also available in: Unified diff