]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: catch failure of drive_add
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 17 Jan 2017 16:14:11 +0000 (16:14 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 19 Jan 2017 10:56:53 +0000 (10:56 +0000)
commitb9cc6316c078cccc82addf607de09520a52d88e1
treea6e7dbe278fea0556c95155b99fd735045a84e4e
parent01d9c3497ceb569eba56b34246054194f3bd7dee
qemu: catch failure of drive_add

Previously when QEMU failed "drive_add" due to an error opening
a file it would report

  "could not open disk image"

These days though, QEMU reports

  "Could not open '/tmp/virtd-test_e3hnhh5/disk1.qcow2': Permission denied"

which we were not detecting as an error condition.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/qemu/qemu_monitor_text.c