aboutsummaryrefslogtreecommitdiff
path: root/block-qcow.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-09-16 21:59:02 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-09-16 21:59:02 +0000
commitec36ba14748e140dda237ba22ad3135e360b0d9f (patch)
treebcaa0fe4961882998a3acb19f225be006ab92a57 /block-qcow.c
parent3ae43202754711808ea5186e327bfd0533dd88fc (diff)
downloadqemu-ec36ba14748e140dda237ba22ad3135e360b0d9f.zip
qemu-ec36ba14748e140dda237ba22ad3135e360b0d9f.tar.gz
qemu-ec36ba14748e140dda237ba22ad3135e360b0d9f.tar.bz2
vmdk compatibility level 6 images, by Soren Hansen.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3175 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'block-qcow.c')
-rw-r--r--block-qcow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block-qcow.c b/block-qcow.c
index 208e35c..1f44355 100644
--- a/block-qcow.c
+++ b/block-qcow.c
@@ -769,7 +769,7 @@ static int qcow_create(const char *filename, int64_t total_size,
l1_size = ((total_size * 512) + (1LL << shift) - 1) >> shift;
header.l1_table_offset = cpu_to_be64(header_size);
- if (flags) {
+ if (flags & BLOCK_FLAG_ENCRYPT) {
header.crypt_method = cpu_to_be32(QCOW_CRYPT_AES);
} else {
header.crypt_method = cpu_to_be32(QCOW_CRYPT_NONE);