Revision 34b5d2c6 block/cow.c
b/block/cow.c | ||
---|---|---|
302 | 302 |
struct stat st; |
303 | 303 |
int64_t image_sectors = 0; |
304 | 304 |
const char *image_filename = NULL; |
305 |
Error *local_err = NULL; |
|
305 | 306 |
int ret; |
306 | 307 |
BlockDriverState *cow_bs; |
307 | 308 |
|
... | ... | |
320 | 321 |
return ret; |
321 | 322 |
} |
322 | 323 |
|
323 |
ret = bdrv_file_open(&cow_bs, filename, NULL, BDRV_O_RDWR); |
|
324 |
ret = bdrv_file_open(&cow_bs, filename, NULL, BDRV_O_RDWR, &local_err);
|
|
324 | 325 |
if (ret < 0) { |
326 |
qerror_report_err(local_err); |
|
327 |
error_free(local_err); |
|
325 | 328 |
return ret; |
326 | 329 |
} |
327 | 330 |
|
Also available in: Unified diff