qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] vmdk: Fix format specific information (create t


From: Kevin Wolf
Subject: Re: [Qemu-devel] [PATCH] vmdk: Fix format specific information (create type) for streamOptimized
Date: Thu, 23 Jan 2014 15:42:32 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

Am 23.01.2014 um 08:10 hat Fam Zheng geschrieben:
> Previously the field is wrong:
> 
>     $ ./qemu-img create -f vmdk -o subformat=streamOptimized /tmp/a.vmdk 1G
> 
>     $ ./qemu-img info /tmp/a.vmdk
>     image: /tmp/a.vmdk
>     file format: vmdk
>     virtual size: 1.0G (1073741824 bytes)
>     disk size: 12K
>     Format specific information:
>         cid: 1390460459
>         parent cid: 4294967295
> >>>     create type: monolithicSparse
>         <snip>
> 
> Signed-off-by: Fam Zheng <address@hidden>

Thanks, applied to the block branch.

By the way, I tried converting a raw image to streamOptimised and got
this:

qemu-img: Could not write to allocated cluster for streamOptimized
qemu-img: error while writing sector 63: Input/output error

The problem seems to be that qemu-img tries to be clever and doesn't
write out sparse parts, which breaks up the first cluster into multiple
write requests. Adding -S 64 makes it work. Should we change something
to get a working default?

Kevin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]