| Summary: | Wiping volumes has side effect of changing the volume format for non-raw volumes | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Nan Zhang <nzhang> |
| Component: | libvirt | Assignee: | Osier Yang <jyang> |
| Status: | CLOSED WONTFIX | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.2 | CC: | berrange, dallan, dyuan, eblake, juzhang, mzhan, rwu, whuang |
| Target Milestone: | rc | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-11-10 21:31:32 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Nan Zhang
2011-08-29 11:14:10 UTC
Since wiping the volume destroys all the data in it, the volume is raw because the qcow metadata has been removed. This is behavior by design, so I am closing as NOTABUG. Should virsh vol-wipe add a new flag that wipes the contents, but then restores enough qcow2 metadata that the file is back to a blank qcow2 volume? Not a bad RFE, but nobody's clamoring for it. Eric, Thanks for your inputs! QE requests this feature support, so re-open this BZ to ASSIGNED. IMHO this is a bug, not an RFE. Wiping a volume should only be wiping the data, not the file format info. The problem is that the current code is not paying attention to the file format when wiping data, it just blindly truncates the file to zero bytes. For non-raw formats, we should run 'qemu-img create' again after truncation to ensure the original file format structure is preserved. |