Lines Matching +full:2 +full:c
6 # Copyright (C) 2013 Nodalink, SARL.
10 # the Free Software Foundation; either version 2 of the License, or
33 _rm_test_img "$TEST_DIR/2.raw"
36 trap "_cleanup; exit \$status" 0 1 2 3 15
57 do_run_qemu "$@" 2>&1 | _filter_testdir | _filter_imgfmt | _filter_qemu \
62 quorum="driver=raw,file.driver=quorum,file.vote-threshold=2"
64 quorum="$quorum,file.children.1.file.filename=$TEST_DIR/2.raw"
65 quorum="$quorum,file.children.2.file.filename=$TEST_DIR/3.raw"
68 quorum="$quorum,file.children.2.driver=raw"
76 TEST_IMG="$TEST_DIR/2.raw" _make_test_img $size
82 $QEMU_IO -c "open -o $quorum" -c "write -P 0x32 0 $size" | _filter_qemu_io
87 $QEMU_IO -c "read -P 0x32 0 $size" "$TEST_DIR/1.raw" | _filter_qemu_io
88 $QEMU_IO -c "read -P 0x32 0 $size" "$TEST_DIR/2.raw" | _filter_qemu_io
89 $QEMU_IO -c "read -P 0x32 0 $size" "$TEST_DIR/3.raw" | _filter_qemu_io
94 $QEMU_IO -c "write -P 0x42 0 $size" "$TEST_DIR/2.raw" | _filter_qemu_io
99 $QEMU_IO -c "open -o $quorum" -c "read -P 0x32 0 $size" | _filter_qemu_io
112 "filename": "$TEST_DIR/2.raw"
120 "vote-threshold": 2,
153 $QEMU_IO -c "open -o $quorum" -c "read -P 0x32 0 $size" | _filter_qemu_io
158 $QEMU_IO -c "read -P 0x32 0 $size" "$TEST_DIR/2.raw" | _filter_qemu_io
178 $QEMU_IO -c "write -P 0x42 1M 1M" "$TEST_DIR/2.raw" | _filter_qemu_io
187 -blockdev file,node-name=file2,filename="$TEST_DIR/2.raw" \
193 "vote-threshold": 2,
211 $QEMU_IO -c "read -P 0x32 0 $size" "$TEST_DIR/2.raw" | _filter_qemu_io
216 $QEMU_IO -c "write -P 0x41 0 $size" "$TEST_DIR/1.raw" | _filter_qemu_io
217 $QEMU_IO -c "write -P 0x42 0 $size" "$TEST_DIR/2.raw" | _filter_qemu_io
222 $QEMU_IO -c "open -o $quorum" -c "read -P 0x32 0 $size" | _filter_qemu_io
227 quorum="driver=raw,file.driver=quorum,file.vote-threshold=2,file.blkverify=on"
229 quorum="$quorum,file.children.1.file.filename=$TEST_DIR/2.raw"
233 $QEMU_IO -c "open -o $quorum" -c "read -P 0x32 0 $size" | _filter_qemu_io
238 $QEMU_IO -c "write -P 0x32 0 $size" "$TEST_DIR/1.raw" | _filter_qemu_io
239 $QEMU_IO -c "write -P 0x32 0 $size" "$TEST_DIR/2.raw" | _filter_qemu_io
244 $QEMU_IO -c "open -o $quorum" -c "read -P 0x32 0 $size" | _filter_qemu_io
249 quorum="$quorum,file.children.2.file.filename=$TEST_DIR/3.raw"
250 quorum="$quorum,file.children.2.driver=raw"
252 $QEMU_IO -c "open -o $quorum" | _filter_qemu_io
264 "vote-threshold": 2,
278 "filename": "$TEST_DIR/2.raw"
290 "filename": "$TEST_DIR/2.raw"
305 for vote_threshold in 1 2; do
326 "filename": "$TEST_DIR/2.raw"