[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-discuss] Difference between commit and rebase
From: |
Max Reitz |
Subject: |
Re: [Qemu-discuss] Difference between commit and rebase |
Date: |
Tue, 27 Aug 2019 14:01:45 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 |
On 27.08.19 04:39, lampahome wrote:
> It won’t do so by reading any clusters. It just checks metadata to see
> which clusters are allocated above the base image, and then writes those
> to the base.
>
> So conclusion below:
>
> Non-similarity:
> qemu-img commit: only commit allocated clusters to base images.
> qemu-img rebase: compare each cluster if they're the same before
> committing. Commit cluster if difference.
>
> Do I misunderstand?
Well, rebase doesn’t commit. It pulls the changes up to the overlay.
Also, as John has written, it should be noted rebase is also a more
versatile and general tool than commit. (Hence its name, it allows
rebasing onto any backing file; whereas commit only works with the
backing chain as-is.)
Max
signature.asc
Description: OpenPGP digital signature