[libvirt] [PATCH v2 2/3] Change QEMU capabilities cache to check ctime instead of mtime

Eric Blake eblake at redhat.com
Mon Mar 10 18:40:00 UTC 2014


On 03/10/2014 10:54 AM, Daniel P. Berrange wrote:
> Debian's package manager will preserve mtime timesatmp 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 at redhat.com>
> ---
>  src/qemu/qemu_capabilities.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

ACK.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140310/b26da986/attachment-0001.sig>


More information about the libvir-list mailing list