Lines Matching +full:sync +full:- +full:write
4 # Tests oVirt-like storage migration:
5 # - Create snapshot
6 # - Create target image with (not yet existing) target backing chain
7 # (i.e. just write the name of a soon-to-be-copied-over backing file into it)
8 # - drive-mirror the snapshot to the target with mode=existing and sync=top
9 # - In the meantime, copy the original source files to the destination via
11 # - Complete the drive-mirror job
12 # - Delete all source images
59 _make_test_img -b "$TEST_IMG.backing" -F $IMGFMT 1M
61 $QEMU_IO -c 'write -P 1 0 256k' "$TEST_IMG.backing" | _filter_qemu_io
62 $QEMU_IO -c 'write -P 2 64k 192k' "$TEST_IMG" | _filter_qemu_io
64 _launch_qemu -drive if=none,id=source,file="$TEST_IMG"
71 TEST_IMG="$TEST_IMG.overlay" _make_test_img -u -b "$TEST_IMG" -F $IMGFMT 1M
73 "{ 'execute': 'blockdev-snapshot-sync',
75 'snapshot-file': '$TEST_IMG.overlay',
80 # Write something to the snapshot
82 "{ 'execute': 'human-monitor-command',
83 'arguments': { 'command-line':
84 'qemu-io source \"write -P 3 128k 128k\"' } }" \
88 TEST_IMG="$TEST_IMG.target.overlay" _make_test_img -u -b "$TEST_IMG.target" \
89 -F $IMGFMT 1M
93 "{ 'execute': 'drive-mirror',
97 'sync': 'top' } }" \
105 # Write some more
107 "{ 'execute': 'human-monitor-command',
108 'arguments': { 'command-line':
109 'qemu-io source \"write -P 4 192k 64k\"' } }" \
115 $QEMU_IMG rebase -u -b "$TEST_IMG.target.backing" -F $IMGFMT "$TEST_IMG.target"
119 "{ 'execute': 'block-job-complete',
136 "{ 'execute': 'human-monitor-command',
137 'arguments': { 'command-line':
138 'qemu-io source \"read -P 1 0k 64k\"' } }" \
142 "{ 'execute': 'human-monitor-command',
143 'arguments': { 'command-line':
144 'qemu-io source \"read -P 2 64k 64k\"' } }" \
148 "{ 'execute': 'human-monitor-command',
149 'arguments': { 'command-line':
150 'qemu-io source \"read -P 3 128k 64k\"' } }" \
154 "{ 'execute': 'human-monitor-command',
155 'arguments': { 'command-line':
156 'qemu-io source \"read -P 4 192k 64k\"' } }" \
170 $QEMU_IO -c 'read -P 1 0k 64k' \
171 -c 'read -P 2 64k 64k' \
172 -c 'read -P 3 128k 64k' \
173 -c 'read -P 4 192k 64k' \
180 rm -f $seq.full