Revision d8871c5a qemu-img.c
b/qemu-img.c | ||
---|---|---|
269 | 269 |
case 'e': |
270 | 270 |
flags |= BLOCK_FLAG_ENCRYPT; |
271 | 271 |
break; |
272 |
case '6':
|
|
272 |
case '6':
|
|
273 | 273 |
flags |= BLOCK_FLAG_COMPAT6; |
274 |
break;
|
|
274 |
break;
|
|
275 | 275 |
} |
276 | 276 |
} |
277 | 277 |
if (optind >= argc) |
... | ... | |
471 | 471 |
error("Compression not supported for this file format"); |
472 | 472 |
if (flags & BLOCK_FLAG_ENCRYPT && drv != &bdrv_qcow && drv != &bdrv_qcow2) |
473 | 473 |
error("Encryption not supported for this file format"); |
474 |
if (flags & BLOCK_FLAG_COMPRESS && drv != &bdrv_vmdk)
|
|
474 |
if (flags & BLOCK_FLAG_COMPAT6 && drv != &bdrv_vmdk)
|
|
475 | 475 |
error("Alternative compatibility level not supported for this file format"); |
476 | 476 |
if (flags & BLOCK_FLAG_ENCRYPT && flags & BLOCK_FLAG_COMPRESS) |
477 | 477 |
error("Compression and encryption not supported at the same time"); |
Also available in: Unified diff