Bug 894253
Summary: | Missing error message in bdrv_commit to read-only backing file | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Sibiao Luo <sluo> |
Component: | qemu-kvm | Assignee: | Jeff Cody <jcody> |
Status: | CLOSED UPSTREAM | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.0 | CC: | acathrow, areis, bsarathy, jcody, juzhang, kwolf, michen, mkenneth, qzhang, rhod, sluo, virt-maint, ypu |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | 856505 | Environment: | |
Last Closed: | 2013-08-27 21:41:06 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: |
Comment 1
Sibiao Luo
2013-01-11 08:25:07 UTC
(In reply to comment #1) > > Expected result: > should fail to commit to a read-only disk with an error message prompts > mentioned that backing image is read-only. check the data disk size and modify time in host, but there is no any changes before and after commit. - before step 1: # ls -l /home/my-data-disk.qcow2 -rw-r--r--. 1 root root 8725790720 Jan 10 11:09 /home/my-data-disk.qcow2 - after step 3: # ls -l /home/my-data-disk.qcow2 -rw-r--r--. 1 root root 8725790720 Jan 10 11:09 /home/my-data-disk.qcow2 *** Bug 894251 has been marked as a duplicate of this bug. *** *** Bug 894250 has been marked as a duplicate of this bug. *** For completeness, from BZ #856505: In bdrv_commit(), we are (appropriately) refusing to write to the backing file (in this case, the top-level snapshot, as the active layer is a temp image). The function bdrv_reopen() returns an error, and bdrv_commit() returns -EACCES. However, do_commit(), which is the message handler that calls bdrv_commit(), only checks for -EBUSY when it comes to returning an error message. Patch submitted upstream: https://lists.gnu.org/archive/html/qemu-devel/2013-01/msg03456.html |