Re: [Qemu-devel] Cluster doesn't truncate after commit to backing file

2018-09-18 Thread Eric Blake
On 9/18/18 12:05 AM, lampahome wrote: I have two image A and B, and A is the backing file of B I write data in address addr in A. Then create B and set A as backing file of B. Then I discard the same addr in B. So the entry of addr in l2 table should be 1( also is QCOW2_CLUSTER_ZERO_PLAIN) ,

[Qemu-devel] Cluster doesn't truncate after commit to backing file

2018-09-17 Thread lampahome
I have two image A and B, and A is the backing file of B I write data in address addr in A. Then create B and set A as backing file of B. Then I discard the same addr in B. So the entry of addr in l2 table should be 1( also is QCOW2_CLUSTER_ZERO_PLAIN) , right? But the addr cluster in A will