Lines Matching +full:max +full:- +full:speed

37     if [ -f "$TEST_DIR/qsd.pid" ]; then
38 kill -SIGKILL "$(cat "$TEST_DIR/qsd.pid")"
39 rm -f "$TEST_DIR/qsd.pid"
41 rm -f "$SOCK_DIR/qsd.sock"
64 -drive file="${TEST_IMG}.base",cache=$CACHEMODE,aio=$AIOMODE,driver=$IMGFMT,id=disk
73 "{ 'execute': 'blockdev-snapshot-sync',
75 'snapshot-file': '$TEST_IMG.mid',
77 'mode': 'absolute-paths' } }" \
81 "{ 'execute': 'human-monitor-command',
82 'arguments': { 'command-line':
83 'qemu-io disk \"write 0 4M\"' } }" \
87 "{ 'execute': 'blockdev-snapshot-sync',
89 'snapshot-file': '$TEST_IMG',
91 'mode': 'absolute-paths' } }" \
103 # use speed=65536. Each job will perform exactly one iteration before it has
111 # 64k. As all of these are at least as large as the speed, we are sure that the
115 "{ 'execute': 'block-commit',
119 'speed': 65536 } }" \
128 wait=1 _cleanup_qemu | grep -v 'JOB_STATUS_CHANGE'
135 -drive file="${TEST_IMG}",cache=$CACHEMODE,aio=$AIOMODE,driver=$IMGFMT,id=disk
140 "{ 'execute': 'block-commit',
143 'speed': 65536 } }" \
150 wait=1 _cleanup_qemu | grep -v 'JOB_STATUS_CHANGE'
157 -drive file="${TEST_IMG}",cache=$CACHEMODE,aio=$AIOMODE,driver=$IMGFMT,id=disk
162 "{ 'execute': 'drive-mirror',
167 'speed': 65536 } }" \
175 wait=1 _cleanup_qemu | grep -v 'JOB_STATUS_CHANGE'
182 -drive file="${TEST_IMG}",cache=$CACHEMODE,aio=$AIOMODE,driver=$IMGFMT,id=disk
187 "{ 'execute': 'drive-backup',
192 'speed': 65536,
193 'x-perf': {'max-chunk': 65536} } }" \
200 wait=1 _cleanup_qemu | grep -v 'JOB_STATUS_CHANGE'
207 -drive file="${TEST_IMG}",cache=$CACHEMODE,aio=$AIOMODE,driver=$IMGFMT,id=disk
212 "{ 'execute': 'block-stream',
214 'speed': 65536 } }" \
221 wait=1 _cleanup_qemu | grep -v 'JOB_STATUS_CHANGE'
232 # (qemu should force-cancel the job and not wait for the data to be
240 --object throttle-group,id=thrgr,limits.bps-total=1048576 \
241 --blockdev null-co,node-name=null,size=$size \
242 --blockdev throttle,node-name=throttled,throttle-group=thrgr,file=null \
243 --nbd-server addr.type=unix,addr.path="$SOCK_DIR/qsd.sock" \
244 --export nbd,id=exp,node-name=throttled,name=target,writable=true \
245 --pidfile "$TEST_DIR/qsd.pid" \
246 --daemonize
251 # Need a virtio-blk device so that qemu-io writes will not block the monitor
253 --blockdev file,node-name=source-proto,filename="$TEST_IMG" \
254 --blockdev qcow2,node-name=source-fmt,file=source-proto \
255 --device virtio-blk,id=vblk,drive=source-fmt \
256 --blockdev "{\"driver\": \"nbd\",
257 \"node-name\": \"target\",
269 '{"execute": "blockdev-mirror",
271 "job-id": "mirror",
272 "device": "source-fmt",
277 | grep -v JOB_STATUS_CHANGE # Ignore these events during creation
291 # Write something to the device for post-READY mirroring. Write it in
296 # cancelling the job (in-flight requests still are waited for).
298 # something for blockdev-mirror's @buf-size parameter, but
299 # block-commit does not have such a parameter, so we need to figure
305 echo '--- Writing data to the virtio-blk device ---'
307 for ofs in $(seq 0 $step $((size - step))); do
308 qemu_io_cmd="qemu-io -d vblk/virtio-backend "
314 "{\"execute\": \"human-monitor-command\",
316 \"command-line\": \"$qemu_io_cmd\"
329 '{"execute": "query-block-jobs"}' \
330 'return.*"len": [0-9]\+' \
331 | grep 'return.*"len": [0-9]\+' \
332 | sed -e 's/.*"len": \([0-9]\+\).*/\1/'
334 if [ "$len" -eq "$final_len" ]; then
337 timeout=$((timeout - 1))
338 if [ "$timeout" -eq 0 ]; then
362 | sed -e 's/"offset": [0-9]\+/"offset": (filtered)/'
368 kill -SIGTERM "$(cat "$TEST_DIR/qsd.pid")"
384 --blockdev "{\"driver\": \"nbd\",
385 \"node-name\": \"target\",
391 --blockdev file,node-name=source-proto,filename="$TEST_IMG" \
392 --blockdev qcow2,node-name=source-fmt,file=source-proto,backing=target \
393 --device virtio-blk,id=vblk,drive=source-fmt
399 '{"execute": "block-commit",
401 "job-id": "commit",
402 "device": "source-fmt"
405 | grep -v JOB_STATUS_CHANGE # Ignore these events during creation
411 rm -f $seq.full