]> 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)
committerCole Robinson <crobinso@redhat.com>
Fri, 20 Sep 2013 19:54:53 +0000 (15:54 -0400)
commitff165c6a92881932a6535cdfaf0f51d26059d092
tree103f41a2bd644801cceea9befde03278548f2670
parent118d26dc1fd99e0d113af364638be3e9a32f706e
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".

(cherry picked from commit 7729a16814d5bf3aebd248c9af00296ae2773818)
tools/virsh-domain.c