1=== Test backup(sync=none) based fleecing ===
2
3--- Setting up images ---
4
5Done
6
7--- Launching VM ---
8
9Done
10
11--- Setting up Fleecing Graph ---
12
13{"return": {}}
14{"return": {}}
15
16--- Setting up NBD Export ---
17
18{"return": {}}
19{"return": {}}
20
21--- Sanity Check ---
22
23read -P0x5d 0 64k
24read -P0xd5 1M 64k
25read -P0xdc 32M 64k
26read -P0xcd 0x3ff0000 64k
27read -P0 0x00f8000 32k
28read -P0 0x2010000 32k
29read -P0 0x3fe0000 64k
30
31--- Testing COW ---
32
33write -P0xab 0 64k
34{"return": ""}
35write -P0xad 0x00f8000 64k
36{"return": ""}
37write -P0x1d 0x2008000 64k
38{"return": ""}
39write -P0xea 0x3fe0000 64k
40{"return": ""}
41
42--- Verifying Data ---
43
44read -P0x5d 0 64k
45read -P0xd5 1M 64k
46read -P0xdc 32M 64k
47read -P0xcd 0x3ff0000 64k
48read -P0 0x00f8000 32k
49read -P0 0x2010000 32k
50read -P0 0x3fe0000 64k
51
52--- Cleanup ---
53
54{"return": {}}
55{"return": {}}
56{"data": {"device": "fleecing", "len": 67108864, "offset": 393216, "speed": 0, "type": "backup"}, "event": "BLOCK_JOB_CANCELLED", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}}
57{"return": {}}
58
59--- Confirming writes ---
60
61read -P0xab 0 64k
62read -P0xad 0x00f8000 64k
63read -P0x1d 0x2008000 64k
64read -P0xea 0x3fe0000 64k
65read -P0xd5 0x108000 32k
66read -P0xdc 32M 32k
67read -P0xcd 0x3ff0000 64k
68
69Done
70=== Test cbw-filter based fleecing ===
71
72--- Setting up images ---
73
74Done
75
76--- Launching VM ---
77
78Done
79
80--- Setting up Fleecing Graph ---
81
82{"return": {}}
83{"return": {}}
84{"return": {}}
85
86--- Setting up NBD Export ---
87
88{"return": {}}
89{"return": {}}
90
91--- Sanity Check ---
92
93read -P0x5d 0 64k
94read -P0xd5 1M 64k
95read -P0xdc 32M 64k
96read -P0xcd 0x3ff0000 64k
97read -P0 0x00f8000 32k
98read -P0 0x2010000 32k
99read -P0 0x3fe0000 64k
100
101--- Testing COW ---
102
103write -P0xab 0 64k
104{"return": ""}
105write -P0xad 0x00f8000 64k
106{"return": ""}
107write -P0x1d 0x2008000 64k
108{"return": ""}
109write -P0xea 0x3fe0000 64k
110{"return": ""}
111
112--- Verifying Data ---
113
114read -P0x5d 0 64k
115read -P0xd5 1M 64k
116read -P0xdc 32M 64k
117read -P0xcd 0x3ff0000 64k
118read -P0 0x00f8000 32k
119read -P0 0x2010000 32k
120read -P0 0x3fe0000 64k
121
122--- Cleanup ---
123
124{"return": {}}
125{"return": {}}
126{"return": {}}
127{"return": {}}
128
129--- Confirming writes ---
130
131read -P0xab 0 64k
132read -P0xad 0x00f8000 64k
133read -P0x1d 0x2008000 64k
134read -P0xea 0x3fe0000 64k
135read -P0xd5 0x108000 32k
136read -P0xdc 32M 32k
137read -P0xcd 0x3ff0000 64k
138
139Done
140=== Test fleecing-format based fleecing ===
141
142--- Setting up images ---
143
144Done
145
146--- Launching VM ---
147
148Done
149
150--- Setting up Fleecing Graph ---
151
152{"return": {}}
153{"return": {}}
154{"return": {}}
155{"return": {}}
156
157--- Setting up NBD Export ---
158
159{"return": {}}
160{"return": {}}
161
162--- Sanity Check ---
163
164read -P0x5d 0 64k
165read -P0xd5 1M 64k
166read -P0xdc 32M 64k
167read -P0xcd 0x3ff0000 64k
168read -P0 0x00f8000 32k
169read -P0 0x2010000 32k
170read -P0 0x3fe0000 64k
171
172--- Testing COW ---
173
174write -P0xab 0 64k
175{"return": ""}
176write -P0xad 0x00f8000 64k
177{"return": ""}
178write -P0x1d 0x2008000 64k
179{"return": ""}
180write -P0xea 0x3fe0000 64k
181{"return": ""}
182
183--- Verifying Data ---
184
185read -P0x5d 0 64k
186read -P0xd5 1M 64k
187read -P0xdc 32M 64k
188read -P0xcd 0x3ff0000 64k
189read -P0 0x00f8000 32k
190read -P0 0x2010000 32k
191read -P0 0x3fe0000 64k
192
193--- Cleanup ---
194
195{"return": {}}
196{"return": {}}
197{"return": {}}
198{"return": {}}
199{"return": {}}
200
201--- Confirming writes ---
202
203read -P0xab 0 64k
204read -P0xad 0x00f8000 64k
205read -P0x1d 0x2008000 64k
206read -P0xea 0x3fe0000 64k
207read -P0xd5 0x108000 32k
208read -P0xdc 32M 32k
209read -P0xcd 0x3ff0000 64k
210
211Done
212=== Test fleecing-format based fleecing with bitmap ===
213
214--- Setting up images ---
215
216Done
217
218--- Launching VM ---
219
220Done
221
222--- Setting up Fleecing Graph ---
223
224{"return": {}}
225{"return": {}}
226{"return": {}}
227{"return": {}}
228
229--- Setting up NBD Export ---
230
231{"return": {}}
232{"return": {}}
233
234--- Sanity Check ---
235
236read -P0x5d 0 64k
237read -P0xd5 1M 64k
238read -P0xdc 32M 64k
239read -P0xcd 0x3ff0000 64k
240read -P0 0x00f8000 32k
241read failed: Invalid argument
242
243read -P0 0x2010000 32k
244read failed: Invalid argument
245
246read -P0 0x3fe0000 64k
247read failed: Invalid argument
248
249
250--- Testing COW ---
251
252write -P0xab 0 64k
253{"return": ""}
254write -P0xad 0x00f8000 64k
255{"return": ""}
256write -P0x1d 0x2008000 64k
257{"return": ""}
258write -P0xea 0x3fe0000 64k
259{"return": ""}
260
261--- Verifying Data ---
262
263read -P0x5d 0 64k
264read -P0xd5 1M 64k
265read -P0xdc 32M 64k
266read -P0xcd 0x3ff0000 64k
267read -P0 0x00f8000 32k
268read failed: Invalid argument
269
270read -P0 0x2010000 32k
271read failed: Invalid argument
272
273read -P0 0x3fe0000 64k
274read failed: Invalid argument
275
276
277--- Cleanup ---
278
279{"return": {}}
280{"return": {}}
281{"return": {}}
282{"return": {}}
283{"return": {}}
284
285--- Confirming writes ---
286
287read -P0xab 0 64k
288read -P0xad 0x00f8000 64k
289read -P0x1d 0x2008000 64k
290read -P0xea 0x3fe0000 64k
291read -P0xd5 0x108000 32k
292read -P0xdc 32M 32k
293read -P0xcd 0x3ff0000 64k
294
295Done
296=== Test push backup with fleecing ===
297
298--- Setting up images ---
299
300Done
301
302--- Launching VM ---
303
304Done
305
306--- Setting up Fleecing Graph ---
307
308{"return": {}}
309{"return": {}}
310{"return": {}}
311{"return": {}}
312
313--- Starting actual backup ---
314
315{"return": {}}
316{"return": {}}
317
318--- Testing COW ---
319
320write -P0xab 0 64k
321{"return": ""}
322write -P0xad 0x00f8000 64k
323{"return": ""}
324write -P0x1d 0x2008000 64k
325{"return": ""}
326write -P0xea 0x3fe0000 64k
327{"return": ""}
328{"data": {"device": "push-backup", "len": 67108864, "offset": 67108864, "speed": 0, "type": "backup"}, "event": "BLOCK_JOB_COMPLETED", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}}
329{"return": {}}
330
331--- Verifying Data ---
332
333read -P0x5d 0 64k
334read -P0xd5 1M 64k
335read -P0xdc 32M 64k
336read -P0xcd 0x3ff0000 64k
337read -P0 0x00f8000 32k
338read -P0 0x2010000 32k
339read -P0 0x3fe0000 64k
340
341--- Cleanup ---
342
343{"return": {}}
344{"return": {}}
345{"return": {}}
346{"return": {}}
347
348--- Confirming writes ---
349
350read -P0xab 0 64k
351read -P0xad 0x00f8000 64k
352read -P0x1d 0x2008000 64k
353read -P0xea 0x3fe0000 64k
354read -P0xd5 0x108000 32k
355read -P0xdc 32M 32k
356read -P0xcd 0x3ff0000 64k
357
358Done
359