]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: fix change-media bug on disk block type
authorGuannan Ren <gren@redhat.com>
Mon, 22 Jul 2013 07:38:43 +0000 (15:38 +0800)
committerGuannan Ren <gren@redhat.com>
Tue, 23 Jul 2013 06:20:56 +0000 (14:20 +0800)
commit7729a16814d5bf3aebd248c9af00296ae2773818
tree313ce4dd7655e8f262dc56cd682c1045916dbcf5
parentb6c162d3bbc7f43f7756a56b3d646c4bdaafe2dc
virsh: fix change-media bug on disk block type

Resolves:https://bugzilla.redhat.com/show_bug.cgi?id=923053
When cdrom is block type, the virsh change-media failed to insert
source info because virsh uses "<source block='/dev/sdb'/>" while
the correct name of the attribute for block disks is "dev".
tools/virsh-domain.c