summaryrefslogtreecommitdiff
path: root/qemu-img.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-10-24 16:11:42 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-10-24 16:11:42 +0000
commitd8871c5a490c29c579bf981b955d9d3f970e15bd (patch)
treeee3d9c666c8ad5ac4c415938f36d84f9a0256bbd /qemu-img.c
parent9f77c1cdcff154cfd095309bce37cea818b3226c (diff)
downloadqemu-d8871c5a490c29c579bf981b955d9d3f970e15bd.tar.gz
Fix typo, spotted by Edivaldo de Araujo Pereira.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3434 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'qemu-img.c')
-rw-r--r--qemu-img.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/qemu-img.c b/qemu-img.c
index d0210825ce..b84b75b43f 100644
--- a/qemu-img.c
+++ b/qemu-img.c
@@ -269,9 +269,9 @@ static int img_create(int argc, char **argv)
case 'e':
flags |= BLOCK_FLAG_ENCRYPT;
break;
- case '6':
+ case '6':
flags |= BLOCK_FLAG_COMPAT6;
- break;
+ break;
}
}
if (optind >= argc)
@@ -471,7 +471,7 @@ static int img_convert(int argc, char **argv)
error("Compression not supported for this file format");
if (flags & BLOCK_FLAG_ENCRYPT && drv != &bdrv_qcow && drv != &bdrv_qcow2)
error("Encryption not supported for this file format");
- if (flags & BLOCK_FLAG_COMPRESS && drv != &bdrv_vmdk)
+ if (flags & BLOCK_FLAG_COMPAT6 && drv != &bdrv_vmdk)
error("Alternative compatibility level not supported for this file format");
if (flags & BLOCK_FLAG_ENCRYPT && flags & BLOCK_FLAG_COMPRESS)
error("Compression and encryption not supported at the same time");