Bug 2001315
Summary: | doc: Missing manual for option data-file,data-file-raw in qemu-img | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 9 | Reporter: | John Ferlan <jferlan> |
Component: | qemu-kvm | Assignee: | John Ferlan <jferlan> |
qemu-kvm sub component: | qcow2 | QA Contact: | Tingting Mao <timao> |
Status: | CLOSED CURRENTRELEASE | Docs Contact: | |
Severity: | low | ||
Priority: | low | CC: | coli, hhan, jinzhao, juzhang, timao, virt-maint, xuwei |
Version: | 9.0 | Keywords: | Documentation, EasyFix, ManPageChange, Triaged |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | 1763105 | Environment: | |
Last Closed: | 2021-09-17 08:25:52 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: | |||
Bug Depends On: | 1763105, 1997408 | ||
Bug Blocks: |
Description
John Ferlan
2021-09-05 13:49:12 UTC
Verified this bug as below. Tested with: qemu-kvm-6.1.0-2.el9 kernel-5.14.0-0.rc7.54.el9.x86_64 Steps: # man qemu-img ...... ...... data_file Filename where all guest data will be stored. If this option is used, the qcow2 file will only contain the image's metadata. Note: Data loss will occur if the given filename already exists when using this option with qemu-img create since qemu-img will create the data file anew, overwriting the file's original contents. To simply update the reference to point to the given pre-existing file, use qemu-img amend. data_file_raw If this option is set to on, QEMU will always keep the external data file con‐ sistent as a standalone read-only raw image. It does this by forwarding all write accesses to the qcow2 file through to the raw data file, including their offsets. Therefore, data that is visible on the qcow2 node (i.e., to the guest) at some offset is visible at the same offset in the raw data file. This results in a read-only raw image. Writes that by‐ pass the qcow2 metadata may corrupt the qcow2 metadata because the out-of-band writes may result in the metadata falling out of sync with the raw image. If this option is off, QEMU will use the data file to store data in an arbi‐ trary manner. The file’s content will not make sense without the accompanying qcow2 metadata. Where data is written will have no relation to its offset as seen by the guest, and some writes (specifically zero writes) may not be for‐ warded to the data file at all, but will only be handled by modifying qcow2 metadata. This option can only be enabled if data_file is set. ....... |