Revision 4534ff54 block/vdi.c
b/block/vdi.c | ||
---|---|---|
277 | 277 |
} |
278 | 278 |
#endif |
279 | 279 |
|
280 |
static int vdi_check(BlockDriverState *bs, BdrvCheckResult *res) |
|
280 |
static int vdi_check(BlockDriverState *bs, BdrvCheckResult *res, |
|
281 |
BdrvCheckMode fix) |
|
281 | 282 |
{ |
282 | 283 |
/* TODO: additional checks possible. */ |
283 | 284 |
BDRVVdiState *s = (BDRVVdiState *)bs->opaque; |
... | ... | |
286 | 287 |
uint32_t *bmap; |
287 | 288 |
logout("\n"); |
288 | 289 |
|
290 |
if (fix) { |
|
291 |
return -ENOTSUP; |
|
292 |
} |
|
293 |
|
|
289 | 294 |
bmap = g_malloc(s->header.blocks_in_image * sizeof(uint32_t)); |
290 | 295 |
memset(bmap, 0xff, s->header.blocks_in_image * sizeof(uint32_t)); |
291 | 296 |
|
Also available in: Unified diff