I tried locking=off, it supports qcow2

-drive file.filename=r 
0605-share.img,format=qcow2,if=none,id=drive-virtio-disk1,cache=directsync,aio=native,file.locking=off
 

Thank you very much.

BR
Chang Limin

-----Original Message-----
From: Max Reitz [mailto:mre...@redhat.com] 
Sent: Thursday, October 26, 2017 3:33 PM
To: changlimin 00148 (Cloud); Fam Zheng
Cc: qemu-devel@nongnu.org; Qemu-block
Subject: Re: [Qemu-devel] Block format 'raw' does not support the option 
'locking' when disable image locking with option locking=off

On 2017-10-26 09:18, Changlimin wrote:
> If the qcow2 file is created with preallocation=full, I think metadata will 
> not corrupt when it is shared between two vms? Snapshot is not required. 
> 
> Is this right?

I wouldn't count on it.

If you really want to take the risk, you can probably use the file.locking=off 
option again.

Max

Reply via email to