Lines Matching +full:read +full:- +full:write

5 # (or can) read and write outside of the image size.
50 if [ "$img_size" -ne -1 ] ; then
60 if [ "$img_size" -ge 0 ] ; then
63 test_size=$((size-img_offset))
67 echo "write to image"
68 $QEMU_IO -c "write -P 0x0a 0 $test_size" "$(img_json)" | _filter_qemu_io
71 echo "read the image"
72 $QEMU_IO -c "read -P 0x0a 0 $test_size" "$(img_json)" | _filter_qemu_io
76 $QEMU_IO -c "read -v $((img_offset-2)) 4" $TEST_IMG | _filter_qemu_io
79 echo "write before image boundary"
80 $QEMU_IO -c "write $((test_size-1)) 1" "$(img_json)" | _filter_qemu_io
83 echo "write across image boundary"
84 $QEMU_IO -c "write $((test_size-1)) 2" "$(img_json)" | _filter_qemu_io
87 echo "write at image boundary"
88 $QEMU_IO -c "write $test_size 1" "$(img_json)" | _filter_qemu_io
91 echo "write after image boundary"
92 $QEMU_IO -c "write $((test_size+512)) 1" "$(img_json)" | _filter_qemu_io
96 $QEMU_IO -c "writev $((test_size-512)) 512 512" "$(img_json)" | _filter_qemu_io
99 echo "read before image boundary"
100 $QEMU_IO -c "read $((test_size-1)) 1" "$(img_json)" | _filter_qemu_io
103 echo "read across image boundary"
104 $QEMU_IO -c "read $((test_size-1)) 2" "$(img_json)" | _filter_qemu_io
107 echo "read at image boundary"
108 $QEMU_IO -c "read $test_size 1" "$(img_json)" | _filter_qemu_io
111 echo "read after image boundary"
112 $QEMU_IO -c "read $((test_size+512)) 1" "$(img_json)" | _filter_qemu_io
116 $QEMU_IO -c "readv $((test_size-512)) 512 512" "$(img_json)" | _filter_qemu_io
120 $QEMU_IO -c "write -P 0x0a 0 $size" $TEST_IMG | _filter_qemu_io
123 echo "write zeroes and check"
124 $QEMU_IO -c "write -z 0 512" "$(img_json)" | _filter_qemu_io
125 $QEMU_IO -c "read -v $((img_offset-2)) 4" $TEST_IMG | _filter_qemu_io
128 echo "write zeroes across image boundary"
129 $QEMU_IO -c "write -z $((test_size-1)) 2" "$(img_json)" | _filter_qemu_io
132 echo "write zeroes at image boundary and check"
133 $QEMU_IO -c "write -z $((test_size-2)) 2" "$(img_json)" | _filter_qemu_io
134 $QEMU_IO -c "read -v $((img_offset+test_size-2)) 2" $TEST_IMG | _filter_qemu_io
135 $QEMU_IO -c "read -v $((img_offset+test_size)) 2" $TEST_IMG | _filter_qemu_io
139 $QEMU_IO -c "write -P 0x0a 0 $size" $TEST_IMG | _filter_qemu_io
143 $QEMU_IO -c "discard 0 512" "$(img_json)" | _filter_qemu_io
144 $QEMU_IO -c "read -v $((img_offset-2)) 4" $TEST_IMG | _filter_qemu_io
148 $QEMU_IO -c "discard $((test_size-1)) 2" "$(img_json)" | _filter_qemu_io
152 $QEMU_IO -c "discard $((test_size-2)) 2" "$(img_json)" | _filter_qemu_io
153 $QEMU_IO -c "read -v $((img_offset+test_size-2)) 2" $TEST_IMG | _filter_qemu_io
154 $QEMU_IO -c "read -v $((img_offset+test_size)) 2" $TEST_IMG | _filter_qemu_io
161 img_size=-1
192 write -P 0x0a 0 512
193 write -P 0x0a 511 1
194 write -P 0x0a 512 1
195 reopen -o driver=raw,offset=1536,size=1024
196 write -P 0x0a 0 1024
197 write -P 0x0a 1023 1
198 write -P 0x0a 1024 1
202 $QEMU_IO -c "read -v 510 4" $TEST_IMG | _filter_qemu_io
203 $QEMU_IO -c "read -v 1022 4" $TEST_IMG | _filter_qemu_io
204 $QEMU_IO -c "read -v 1534 4" $TEST_IMG | _filter_qemu_io
205 $QEMU_IO -c "read -v 2558 4" $TEST_IMG | _filter_qemu_io
211 rm -f $seq.full