Revision 14899cdf
b/block/qcow2-snapshot.c | ||
---|---|---|
288 | 288 |
if (qcow_write_snapshots(bs) < 0) |
289 | 289 |
goto fail; |
290 | 290 |
#ifdef DEBUG_ALLOC |
291 |
check_refcounts(bs); |
|
291 |
qcow2_check_refcounts(bs);
|
|
292 | 292 |
#endif |
293 | 293 |
return 0; |
294 | 294 |
fail: |
... | ... | |
332 | 332 |
goto fail; |
333 | 333 |
|
334 | 334 |
#ifdef DEBUG_ALLOC |
335 |
check_refcounts(bs); |
|
335 |
qcow2_check_refcounts(bs);
|
|
336 | 336 |
#endif |
337 | 337 |
return 0; |
338 | 338 |
fail: |
... | ... | |
369 | 369 |
return ret; |
370 | 370 |
} |
371 | 371 |
#ifdef DEBUG_ALLOC |
372 |
check_refcounts(bs); |
|
372 |
qcow2_check_refcounts(bs);
|
|
373 | 373 |
#endif |
374 | 374 |
return 0; |
375 | 375 |
} |
b/block/qcow2.c | ||
---|---|---|
44 | 44 |
- L2 tables have always a size of one cluster. |
45 | 45 |
*/ |
46 | 46 |
|
47 |
//#define DEBUG_ALLOC |
|
48 |
//#define DEBUG_ALLOC2 |
|
49 |
//#define DEBUG_EXT |
|
50 |
|
|
51 | 47 |
|
52 | 48 |
typedef struct { |
53 | 49 |
uint32_t magic; |
... | ... | |
251 | 247 |
goto fail; |
252 | 248 |
|
253 | 249 |
#ifdef DEBUG_ALLOC |
254 |
check_refcounts(bs); |
|
250 |
qcow2_check_refcounts(bs);
|
|
255 | 251 |
#endif |
256 | 252 |
return 0; |
257 | 253 |
|
b/block/qcow2.h | ||
---|---|---|
27 | 27 |
|
28 | 28 |
#include "aes.h" |
29 | 29 |
|
30 |
//#define DEBUG_ALLOC |
|
31 |
//#define DEBUG_ALLOC2 |
|
32 |
//#define DEBUG_EXT |
|
33 |
|
|
30 | 34 |
#define QCOW_MAGIC (('Q' << 24) | ('F' << 16) | ('I' << 8) | 0xfb) |
31 | 35 |
#define QCOW_VERSION 2 |
32 | 36 |
|
Also available in: Unified diff