Bug 613893
| Summary: | [RFE] qemu-io enable truncate function for qcow2. | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Quan Wenli <wquan> |
| Component: | qemu-kvm | Assignee: | Kevin Wolf <kwolf> |
| Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 6.1 | CC: | ajia, kcao, llim, mkenneth, szhou, tburke, virt-maint |
| Target Milestone: | beta | Keywords: | FutureFeature |
| Target Release: | 6.1 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | qemu-kvm-0.12.1.2-2.123.el6 | Doc Type: | Enhancement |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-05-19 11:34:00 UTC | Type: | --- |
| 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: | |||
| Bug Blocks: | 580953 | ||
|
Description
Quan Wenli
2010-07-13 06:30:31 UTC
I think it does work for raw image files. The implementation in qcow2 is a new feature that has not been backported, indeed. We can either make it an RFE and move it to 6.1 or close it as NOTABUG. I'll leave it to you which one you prefer. I check that truncate can work for raw images. Add RFE into summary. Reproduce this bug with 113. #qemu-img create -f raw test.img 2G #qemu-io test.img qemu-io> truncate 2G truncate: Unknown error 18446744073709551521 Test this bug with qemu-kvm-0.12.1.2-2.128.el6.x86_64. This bug does not exist when truncate size bigger than initiate size. #qemu-img create -f qcow2 test.img 2G #qemu-io test.img qemu-io> truncate 3G qemu-io> length 3.000 GiB While this bug reproduce when truncate size smaller than initiate size. # qemu-img create -f qcow2 test.img 2G Formatting 'test.img', fmt=qcow2 size=2147483648 encryption=off cluster_size=0 # qemu-io test.img qemu-io> truncate 1G truncate: Unknown error 18446744073709551521 BTW this issue does not exist on raw format. So change status to assigned. qcow2 only supports growing images, not shrinking. So this is the expected result (except that qemu-io doesn't get the right error message). (In reply to comment #10) > qcow2 only supports growing images, not shrinking. So this is the expected > result (except that qemu-io doesn't get the right error message). Kevin, would you prefer fix this error message on this bug or prefer open a separate one? (In reply to comment #10) > qcow2 only supports growing images, not shrinking. So this is the expected > result (except that qemu-io doesn't get the right error message). According to comment 9 and comment 10, this issue has already been fixed. And I will open another bug to track error message issue. An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2011-0534.html An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2011-0534.html |