Revision 0e7e1989 qemu-img.c
b/qemu-img.c | ||
---|---|---|
551 | 551 |
if (flags & BLOCK_FLAG_ENCRYPT && flags & BLOCK_FLAG_COMPRESS) |
552 | 552 |
error("Compression and encryption not supported at the same time"); |
553 | 553 |
|
554 |
ret = bdrv_create(drv, out_filename, total_sectors, out_baseimg, flags);
|
|
554 |
ret = bdrv_create2(drv, out_filename, total_sectors, out_baseimg, NULL, flags);
|
|
555 | 555 |
if (ret < 0) { |
556 | 556 |
if (ret == -ENOTSUP) { |
557 | 557 |
error("Formatting not supported for file format '%s'", out_fmt); |
Also available in: Unified diff