Bug 1699858
Summary: | Improve the dump info of qcow2: external data file images with different preallocation modes | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux Advanced Virtualization | Reporter: | Tingting Mao <timao> |
Component: | qemu-kvm | Assignee: | Kevin Wolf <kwolf> |
Status: | CLOSED ERRATA | QA Contact: | Tingting Mao <timao> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 8.0 | CC: | chayang, coli, ddepaula, juzhang, kwolf, ngu, qzhang, timao, virt-maint |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | qemu-kvm-4.1.0-1.module+el8.1.0+3966+4a23dca1 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-11-06 07:14:08 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: |
Description
Tingting Mao
2019-04-15 11:56:55 UTC
Preallocation turned out to have real bugs. Unfortunately, it's probably a bit too late for 4.0, but I sent patches upstream: https://lists.gnu.org/archive/html/qemu-block/2019-04/msg00443.html Tried to verify this bug as below: Tested with: qemu-kvm-4.1.0-1.module+el8.1.0+3966+4a23dca1 kernel-4.18.0-134.el8 Steps: Default/off: # qemu-img create -f qcow2 -o data_file=base.img,data_file_raw=off,preallocation=off base.qcow2 5G # qemu-img map base.qcow2 --output=json [{ "start": 0, "length": 5368709120, "depth": 0, "zero": true, "data": false}] Full: # qemu-img create -f qcow2 -o data_file=base.img,data_file_raw=off,preallocation=full base.qcow2 5G # qemu-img map base.qcow2 --output=json [{ "start": 0, "length": 5368709120, "depth": 0, "zero": false, "data": true, "offset": 0}] Folloc: # qemu-img create -f qcow2 -o data_file=base.img,data_file_raw=off,preallocation=falloc base.qcow2 5G # qemu-img map base.qcow2 --output=json [{ "start": 0, "length": 5368709120, "depth": 0, "zero": false, "data": true, "offset": 0}] # qemu-img map base.img --output=json [{ "start": 0, "length": 16384, "depth": 0, "zero": false, "data": true, "offset": 0}, { "start": 16384, "length": 5368692736, "depth": 0, "zero": true, "data": false, "offset": 16384}] Metadata: # qemu-img create -f qcow2 -o data_file=base.img,data_file_raw=off,preallocation=metadata base.qcow2 5G # qemu-img map base.qcow2 --output=json [{ "start": 0, "length": 5368709120, "depth": 0, "zero": false, "data": true, "offset": 0}] 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-2019:3723 |