Received: from eggs.gnu.org ([2001:4830:134:3::10]:58073) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBJm8-00085N-KD for qemu-devel@nongnu.org; Tue, 22 Dec 2015 05:02:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aBJm4-0005Bf-4T for qemu-devel@nongnu.org; Tue, 22 Dec 2015 05:02:36 -0500 Received: from relay.parallels.com ([195.214.232.42]:45885) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBJm3-0005Ag-Ry for qemu-devel@nongnu.org; Tue, 22 Dec 2015 05:02:32 -0500 From: Dmitry Mishin Date: Tue, 22 Dec 2015 09:48:23 +0000 Message-ID: References: <1450777413-13948-1-git-send-email-den@openvz.org> In-Reply-To: <1450777413-13948-1-git-send-email-den@openvz.org> Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 1/1] doc: document chardev option 'append' List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Denis V. Lunev (openvz)" Cc: Paolo Bonzini , "qemu-devel@nongnu.org" , Markus Armbruster On 22/12/15 12:43, "Denis V. Lunev" wrote: > commit 31e38a22a0c5a25646f966f001e1f5513d5a186d > Author: Olga Krishtal > Date: Fri Dec 4 09:42:04 2015 +0300 > > qemu-char: append opt to stop truncation of serial file > >has added the option to the runtime but does not added it to -help >output. This blocks libvirt from using it. > >Signed-off-by: Denis V. Lunev >CC: Dmitry Mishin >CC: Eric Blake >CC: Markus Armbruster >CC: Paolo Bonzini >--- > qemu-options.hx | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > >diff --git a/qemu-options.hx b/qemu-options.hx >index 49afe6c..f706e4a 100644 >--- a/qemu-options.hx >+++ b/qemu-options.hx >@@ -2044,7 +2044,7 @@ DEF("chardev", HAS_ARG, QEMU_OPTION_chardev, > "-chardev=20 >vc,id=3Did[[,width=3Dwidth][,height=3Dheight]][[,cols=3Dcols][,rows=3Drows= ]]\n" > " [,mux=3Don|off]\n" > "-chardev ringbuf,id=3Did[,size=3Dsize]\n" >- "-chardev file,id=3Did,path=3Dpath[,mux=3Don|off]\n" >+ "-chardev file,id=3Did,path=3Dpath[,mux=3Don|off][,append=3Don|off]\n= " > "-chardev pipe,id=3Did,path=3Dpath[,mux=3Don|off]\n" > #ifdef _WIN32 > "-chardev console,id=3Did[,mux=3Don|off]\n" >@@ -2199,7 +2199,7 @@ console with the given dimensions. > Create a ring buffer with fixed size @option{size}. > @var{size} must be a power of two, and defaults to @code{64K}). >=20 >-@item -chardev file ,id=3D@var{id} ,path=3D@var{path} >+@item -chardev file ,id=3D@var{id} ,path=3D@var{path} [,append=3D@var{on|= off}] >=20 > Log all traffic received from the guest to a file. >=20 >@@ -2207,6 +2207,9 @@ Log all traffic received from the guest to a file. > created if it does not already exist, and overwritten if it does. >@option{path} > is required. >=20 >+@option{append} specifies that QEMU must truncate the file on open. >+@option{append} is optional, default value is on. According to code, default value is off. >+ > @item -chardev pipe ,id=3D@var{id} ,path=3D@var{path} >=20 > Create a two-way connection to the guest. The behaviour differs slightly >between >--=20 >2.5.0 >