]> xenbits.xensource.com Git - libvirt.git/commit
Change QEMU capabilities cache to check ctime instead of mtime
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 10 Mar 2014 15:50:19 +0000 (15:50 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 11 Mar 2014 10:52:29 +0000 (10:52 +0000)
commitf5059a929e0db6689e908e354b13a60661c143e1
treecd6f9735713e8b3c2ab0cad3610ecfa41ff1d7eb
parent10ec0725453d9f54ce26ae5895e42d4c586f0339
Change QEMU capabilities cache to check ctime instead of mtime

Debian's package manager will preserve mtime timestamp on binaries
from the time they are built, rather than installed. So if a
user downgrades their QEMU dpkg, the libvirt capabilities
cache will not refresh. The fix is to use ctime instead of mtime
since it cannot be faked.

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