• D
    Allow to dynamically set the size of the debug buffer · b16f47ab
    Daniel Veillard 提交于
    This is the part allowing to dynamically resize the debug log
    buffer from it's default 64kB size. The buffer is now dynamically
    allocated.
    It adds a new API virLogSetBufferSize() which resizes the buffer
    If passed a zero size, the buffer is deallocated and we do the small
    optimization of not formatting messages which are not output anymore.
    On the daemon side, it just adds a new option log_buffer_size to
    libvirtd.conf and call virLogSetBufferSize() if needed
    * src/util/logging.h src/util/logging.c src/libvirt_private.syms:
      make buffer dynamic and add virLogSetBufferSize() internal API
    * daemon/libvirtd.conf: document the new log_buffer_size option
    * daemon/libvirtd.c: read and use the new log_buffer_size option
    b16f47ab
libvirtd.conf 10.9 KB