Bug 803577
Summary: | virsh attach-disk should detect disk source file type when sourcetype is not specified | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Huang Wenlong <whuang> |
Component: | libvirt | Assignee: | Osier Yang <jyang> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.3 | CC: | acathrow, cwei, dallan, dyuan, gsun, jyang, mzhan, rwu, sathnaga86, weizhan |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | libvirt-0.9.13-3.el6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-02-21 07:08:40 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: |
Description
Huang Wenlong
2012-03-15 06:10:23 UTC
commit 6227a220ccdd0193a1912f3a0010a72d91f06818 Author: Osier Yang <jyang> Date: Thu Mar 15 18:16:52 2012 +0800 virsh: A bit smarter attach-disk Detects the file type of source path if no "--sourcetype" and "driver" is specified, instead of always set the disk type as "block". Patch comitted to upstream Verify pass on libvirt-0.9.13-3.el6.x86_64 kernel-2.6.32-289.el6.x86_64 qemu-kvm-0.12.1.2-2.298.el6.x86_64 # virsh attach-disk vr-rhel6u3-x86_64-kvm /dev/sdb1 vdc # virsh attach-disk vr-rhel6u3-x86_64-kvm /var/lib/libvirt/images/attch.img vdb # virsh dumpxml vr-rhel6u3-x86_64-kvm ... <disk type='file' device='disk'> <driver name='qemu' type='raw'/> <source file='/var/lib/libvirt/images/attch.img'/> <target dev='vdb' bus='virtio'/> <alias name='virtio-disk1'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/> </disk> <disk type='block' device='disk'> <driver name='qemu' type='raw'/> <source dev='/dev/sdb1'/> <target dev='vdc' bus='virtio'/> <alias name='virtio-disk2'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/> </disk> ... 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. http://rhn.redhat.com/errata/RHSA-2013-0276.html |