]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: catch cdrom change error
authorRyan Harper <ryanh@us.ibm.com>
Fri, 9 Apr 2010 13:07:16 +0000 (15:07 +0200)
committerDaniel Veillard <veillard@redhat.com>
Fri, 9 Apr 2010 13:07:16 +0000 (15:07 +0200)
commit4a2dd00e76c0f56c3289860baf94393850e46d2f
tree9d527fbaa09ce251e68cf4c978f92dbd7f1324c3
parentaed4c08d4c2cdd4162aa5c68899190ca9c735f0c
qemu: catch cdrom change error

Currently when we attempt to change the cdrom in a qemu VM the monitor
doesn't generate an error if the target filename doesn't exist.  I've
submitted a patch[1] for this.  This patch is the libvirt qemu-driver
side which catches the error message from the monitor and reportes the
error to libvirt.  This means that virsh attach-disk cdrom commands
won't appear to succeed when qemu change command actually failed.

* src/qemu/qemu_monitor_text.c: in qemuMonitorTextChangeMedia() look
  for failure to access the new data
src/qemu/qemu_monitor_text.c