Bug 1314248
Summary: | System crashed when mirroring to itself | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | jingzhao <jinzhao> |
Component: | qemu-kvm | Assignee: | John Snow <jsnow> |
Status: | CLOSED WONTFIX | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 6.8 | CC: | ailan, chayang, jinzhao, juzhang, mkenneth, rbalakri, virt-maint |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-12-02 21:07:49 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: | |||
Bug Blocks: | 1359965 |
Description
jingzhao
2016-03-03 09:44:06 UTC
Is the report correct? ... -drive file=/home/0223/rhel68bk2.qcow2,if=none,format=qcow2,id=drive-virtio-scsi,werror=stop,rerror=stop \ ... { "execute": "drive-mirror", "arguments": { "device": "drive-virtio-disk0", "target": "/home/rhelbk2.img","sync": "full"}} { "execute": "__com.redhat_drive-reopen", "arguments": {"device": "drive-virtio-scsi", "new-image-file": "/home/rhelbk2.img" } You create a drive of id=drive-virtio-scsi, but then reference a drive named "drive-virtio-disk0" with drive-mirror. Did you mean to write "drive-virtio-scsi" here? (In reply to John Snow from comment #3) > Is the report correct? > > ... > -drive > file=/home/0223/rhel68bk2.qcow2,if=none,format=qcow2,id=drive-virtio-scsi, > werror=stop,rerror=stop \ > ... > > { "execute": "drive-mirror", "arguments": { "device": "drive-virtio-disk0", > "target": "/home/rhelbk2.img","sync": "full"}} > { "execute": "__com.redhat_drive-reopen", "arguments": {"device": > "drive-virtio-scsi", "new-image-file": "/home/rhelbk2.img" } > > > You create a drive of id=drive-virtio-scsi, but then reference a drive named > "drive-virtio-disk0" with drive-mirror. > > Did you mean to write "drive-virtio-scsi" here? Sorry for the mistake, yes, I mean write to "drive-virtio-scsi" Thanks Jing Actually, I think this is not valid. Why would you mirror a drive to itself? This to me is like the famous "cat file > file" problem. You may expect this does nothing, but in fact it erases the file. It looks like the same problem is happening here, and I think the real solution is "well, don't do that." If I am mistaken and there is some genuine use case for trying to overwrite a file that is open with data from that open file... well, let me know about that. |