Re: [Qemu-devel] Difference between commit and rebase

2019-08-20 Thread John Snow
On 8/20/19 5:27 AM, lampahome wrote: > I want to remove snapshots and I found two ways: > qemu-img commit Commit takes a chain of images: [base] <-- [top] and commits the top image down into the base image: [base+top] > qemu-img rebase Rebase takes a chain of images: [base] <-- [top] And

Re: [Qemu-devel] Difference between commit and rebase

2019-08-20 Thread Philippe Mathieu-Daudé
Cc'ing qemu-block@ On 8/20/19 11:27 AM, lampahome wrote: > I want to remove snapshots and I found two ways: > qemu-img commit > qemu-img rebase > > I found they both can choose where to rebase(merge) the images. > commit can truncate or not on specific image. > rebase won't truncate rebased image

[Qemu-devel] Difference between commit and rebase

2019-08-20 Thread lampahome
I want to remove snapshots and I found two ways: qemu-img commit qemu-img rebase I found they both can choose where to rebase(merge) the images. commit can truncate or not on specific image. rebase won't truncate rebased image. I found they have something similarity and I don't know what situatio