mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
vmdk compatibility level 6 images, by Soren Hansen.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3175 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
3ae4320275
commit
ec36ba1474
6 changed files with 43 additions and 26 deletions
|
@ -1076,7 +1076,7 @@ static int qcow_create(const char *filename, int64_t total_size,
|
|||
s->cluster_size = 1 << s->cluster_bits;
|
||||
header.cluster_bits = cpu_to_be32(s->cluster_bits);
|
||||
header_size = (header_size + 7) & ~7;
|
||||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue