Re: [libvirt PATCH v2 06/16] qemu: implement persistent file cache for nbdkit caps

2022-09-28 Thread Jonathon Jongsma
On 9/27/22 6:49 AM, Peter Krempa wrote: + +if (virXPathLongLong("string(./selfctime)", ctxt, ) < 0) { +virReportError(VIR_ERR_XML_ERROR, "%s", + _("missing selfctime in nbdkit capabilities XML")); +return -1; +} +nbdkitCaps->libvirtCtime =

Re: [libvirt PATCH v2 06/16] qemu: implement persistent file cache for nbdkit caps

2022-09-27 Thread Peter Krempa
On Wed, Aug 31, 2022 at 13:40:51 -0500, Jonathon Jongsma wrote: > Implement the loadFile and saveFile virFileCacheHandlers callbacks so > that nbdkit capabilities are cached perstistently across daemon > restarts. The format and implementation is modeled on the qemu > capabilities, but simplified

[libvirt PATCH v2 06/16] qemu: implement persistent file cache for nbdkit caps

2022-08-31 Thread Jonathon Jongsma
Implement the loadFile and saveFile virFileCacheHandlers callbacks so that nbdkit capabilities are cached perstistently across daemon restarts. The format and implementation is modeled on the qemu capabilities, but simplified slightly. Signed-off-by: Jonathon Jongsma --- src/qemu/qemu_nbdkit.c