hi, i want to implement the function of qcow2 resize which has snapshots.

each snapshot of qcow2 will have a separate total size, and when apply a 
snapshot,

the image can be shrunk, and the total size of image will change after apply to 
a snapshot 

with different size.

now, there is a disk_size value in struct QcowSnapshot, i only need to change 
the size of current active 

image layer when apply a snapshot with different size, and the io request will 
be limit in the range of active layer.




and i want my code merged into the master of qemu.

please give me some comments. thanks.



zhangzhiming

zhangzhiming...@163.com





 

Reply via email to