]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: command: Truncate the chardev logging file even if append is not present
authorPeter Krempa <pkrempa@redhat.com>
Wed, 1 Mar 2017 17:15:05 +0000 (18:15 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 2 Mar 2017 08:03:41 +0000 (09:03 +0100)
commit215a8a976466117104d216f1f336c2c3ad51d010
treedf45bcb392969d10f725588cb96e61590fc246ca
parent9d87f769726bd5714eb6a930379d8b4c53311196
qemu: command: Truncate the chardev logging file even if append is not present

Our documentation states that the chardev logging file is truncated
unless append='on' is specified. QEMU also behaves the same way and
truncates the file unless we provide the argument. The new virlogd
implementation did not honor if the argument was missing and continued
to append to the file.

Truncate the file even when the 'append' attribute is not present to
behave the same with both implementations and adhere to the docs.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1420205
src/qemu/qemu_command.c