Bug 1506476
Summary: | Document more detail about specifying backing file for commit | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Ping Li <pingl> |
Component: | qemu-kvm-rhev | Assignee: | Hanna Czenczek <hreitz> |
Status: | CLOSED ERRATA | QA Contact: | Tingting Mao <timao> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.5 | CC: | chayang, juzhang, knoel, michen, mrezanin, ngu, pingl, timao, virt-maint |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | qemu-kvm-rhev-2.12.0-1.el7 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-11-01 11:01:10 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Date: Thu, 26 Oct 2017 09:59:47 +0200 From: Max Reitz <mreitz> Subject: [Qemu-devel] [PATCH] qemu-img.1: Image invalidation on qemu-img commit To: qemu-block Cc: Kevin Wolf <kwolf>, qemu-devel, Max Reitz <mreitz> qemu-img commit invalidates all images between base and top. This should be mentioned in the man page. Suggested-by: Ping Li <pingl> Signed-off-by: Max Reitz <mreitz> --- qemu-img.texi | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) Checked the manpage, found below descriptions were added. Note that after a commit operation all images between base and the top image will be invalid and may return garbage data when read. For this reason, "-b" implies "-d" (so that the top image stays valid). Set the bug as verified. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:3443 |
Description of problem: Created the snapshot chain as base -> sn1 -> sn2. Boot guest with the created image and created temporary files fbase, fsn1, and fsn2 in turn. Commit the changes of sn2 to the base image. Found the temporary files in the guest are changed as below: base: fbase, fsn1, and fsn2 sn1: fbase, and fsn1 sn2: fbase, fsn1, and fsn2 Checked the scenario with Max(@mreitz), it is expected. But I think below statement explained by Max should be added to the qemu-img manpage. It will help to create a better understanding of the feature. > If you commit the changes from an image into one in its backing chain, > all of the intermediate images become obsolete and actually invalid. > Therefore, in this case, sn1 may no longer be used after the commit > operation.