]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Invert logic for checking for QEMU disk cache options
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 27 Jul 2010 10:21:10 +0000 (11:21 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 28 Jul 2010 10:27:13 +0000 (11:27 +0100)
commit9749d94f7b7386213ff501e01893cd16e9a2e0c4
tree70a5ae33c9ab682686ec66a3ee3b29a0f799ef23
parent4f24ca01e881ec8df69861a3386b697ff528d3e3
Invert logic for checking for QEMU disk cache options

QEMU has had two different syntax for disk cache options

 Old: on|off
 New: writeback|writethrough|none

QEMU recently added another 'unsafe' option which broke the
libvirt check. We can avoid this & future breakage, if we
do a negative check for the old syntax, instead of a positive
check for the new syntax

* src/qemu/qemu_conf.c: Invert cache option check
src/qemu/qemu_conf.c