On 01.02.2014 06:43, Marcus wrote:

[root@server ~]# qemu-img create -f qcow2 -o preallocation=metadata
imagepre.qcow2 10G
Formatting 'imagepre.qcow2', fmt=qcow2 size=10737418240 encryption=off
cluster_size=65536 preallocation='metadata'
[root@server ~]# qemu info imagepre.qcow2
-bash: qemu: command not found
[root@server ~]# qemu-img info imagepre.qcow2
image: imagepre.qcow2
file format: qcow2
virtual size: 10G (10737418240 bytes)
disk size: 1.7M
cluster_size: 65536

preallocation=metadata leaves disk as 1.7M, it's also sparse, but a bit bigger.

I think just a global switch might be enough given the above.

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro

Reply via email to