Commit d8871c5a490c29c579bf981b955d9d3f970e15bd

Authored by ths
1 parent 9f77c1cd

Fix typo, spotted by Edivaldo de Araujo Pereira.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3434 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 3 additions and 3 deletions
qemu-img.c
@@ -269,9 +269,9 @@ static int img_create(int argc, char **argv) @@ -269,9 +269,9 @@ static int img_create(int argc, char **argv)
269 case 'e': 269 case 'e':
270 flags |= BLOCK_FLAG_ENCRYPT; 270 flags |= BLOCK_FLAG_ENCRYPT;
271 break; 271 break;
272 - case '6': 272 + case '6':
273 flags |= BLOCK_FLAG_COMPAT6; 273 flags |= BLOCK_FLAG_COMPAT6;
274 - break; 274 + break;
275 } 275 }
276 } 276 }
277 if (optind >= argc) 277 if (optind >= argc)
@@ -471,7 +471,7 @@ static int img_convert(int argc, char **argv) @@ -471,7 +471,7 @@ static int img_convert(int argc, char **argv)
471 error("Compression not supported for this file format"); 471 error("Compression not supported for this file format");
472 if (flags & BLOCK_FLAG_ENCRYPT && drv != &bdrv_qcow && drv != &bdrv_qcow2) 472 if (flags & BLOCK_FLAG_ENCRYPT && drv != &bdrv_qcow && drv != &bdrv_qcow2)
473 error("Encryption not supported for this file format"); 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 error("Alternative compatibility level not supported for this file format"); 475 error("Alternative compatibility level not supported for this file format");
476 if (flags & BLOCK_FLAG_ENCRYPT && flags & BLOCK_FLAG_COMPRESS) 476 if (flags & BLOCK_FLAG_ENCRYPT && flags & BLOCK_FLAG_COMPRESS)
477 error("Compression and encryption not supported at the same time"); 477 error("Compression and encryption not supported at the same time");