doc: document chardev option 'append'
PATCH v2 1/1 doc: document chardev option 'append'
commit 31e38a22a0c5a25646f966f001e1f5513d5a186d
Author: Olga Krishtal <[email protected]>
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.
---
Changes from v1:
- fixed default value to 'off'
qemu-options.hx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
qemu-options.hx +5 -2
@@ -2044,7 +2044,7 @@ DEF("chardev", HAS_ARG, QEMU_OPTION_chardev, "-chardev vc,id=id[[,width=width][,height=height]][[,cols=cols][,rows=rows]]\n" " [,mux=on|off]\n" "-chardev ringbuf,id=id[,size=size]\n" - "-chardev file,id=id,path=path[,mux=on|off]\n" + "-chardev file,id=id,path=path[,mux=on|off][,append=on|off]\n" "-chardev pipe,id=id,path=path[,mux=on|off]\n" #ifdef _WIN32 "-chardev console,id=id[,mux=on|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}). -@item -chardev file ,id=@var{id} ,path=@var{path} +@item -chardev file ,id=@var{id} ,path=@var{path} [,append=@var{on|off}] Log all traffic received from the guest to a file.
@@ -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. +@option{append} specifies that QEMU must truncate the file on open. +@option{append} is optional, default value is off. + @item -chardev pipe ,id=@var{id} ,path=@var{path} Create a two-way connection to the guest. The behaviour differs slightly between
Signature · 1 line
2.5.0
Quoted 8 lines · Denis V. Lunev
commit
31e38a22a0c5a25646f966f001e1f5513d5a186d
Author: Olga Krishtal <[email protected]>
Date: Fri Dec 4 09:42:04 2015 +0300qemu-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.
You can remove this sentance about libvirt - we stopped parsing -help output a long time ago. We exclusively use QMP now.
Quoted 36 lines
Signed-off-by Denis V. Lunev <[email protected]>CC Dmitry Mishin <[email protected]>CC Eric Blake <[email protected]>CC Markus Armbruster <[email protected]>CC Paolo Bonzini <[email protected]>---
Changes from v1:
- fixed default value to 'off'qemu-options.hx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)qemu-options.hx +2
-2@@ -2044,7 +2044,7 @@ DEF("chardev", HAS_ARG, QEMU_OPTION_chardev, "-chardev vc,id=id[[,width=width][,height=height]][[,cols=cols][,rows=rows]]\n" " [,mux=on|off]\n" "-chardev ringbuf,id=id[,size=size]\n" - "-chardev file,id=id,path=path[,mux=on|off]\n" + "-chardev file,id=id,path=path[,mux=on|off][,append=on|off]\n" "-chardev pipe,id=id,path=path[,mux=on|off]\n" #ifdef _WIN32 "-chardev console,id=id[,mux=on|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}). -@item -chardev file ,id=@var{id} ,path=@var{path} +@item -chardev file ,id=@var{id} ,path=@var{path} [,append=@var{on|off}] Log all traffic received from the guest to a file.
qemu-options.hx Log all traffic received from the guest to a file. · line 2215
Quoted 9 lines
qemu-options.hx +3
-0@@ -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. +@option{append} specifies that QEMU must truncate the file on open. +@option{append} is optional, default value is off. + @item -chardev pipe ,id=@var{id} ,path=@var{path} Create a two-way connection to the guest. The behaviour differs slightly between
Assuming the commit msg is tweaked to remove mention of libvirt, then:
Regards,
Daniel
Signature · 4 lines
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
Quoted 55 lines · Daniel P. Berrange
Quoted 8 lines · Denis V. Lunev
commit
31e38a22a0c5a25646f966f001e1f5513d5a186d
Author: Olga Krishtal <[email protected]>
Date: Fri Dec 4 09:42:04 2015 +0300qemu-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.
You can remove this sentance about libvirt - we stopped parsing -help output a long time ago. We exclusively use QMP now.
Quoted 43 lines
Signed-off-by Denis V. Lunev <[email protected]>CC Dmitry Mishin <[email protected]>CC Eric Blake <[email protected]>CC Markus Armbruster <[email protected]>CC Paolo Bonzini <[email protected]>---
Changes from v1:
- fixed default value to 'off'qemu-options.hx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)qemu-options.hx +5
-2@@ -2044,7 +2044,7 @@ DEF("chardev", HAS_ARG, QEMU_OPTION_chardev, "-chardev vc,id=id[[,width=width][,height=height]][[,cols=cols][,rows=rows]]\n" " [,mux=on|off]\n" "-chardev ringbuf,id=id[,size=size]\n" - "-chardev file,id=id,path=path[,mux=on|off]\n" + "-chardev file,id=id,path=path[,mux=on|off][,append=on|off]\n" "-chardev pipe,id=id,path=path[,mux=on|off]\n" #ifdef _WIN32 "-chardev console,id=id[,mux=on|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}). -@item -chardev file ,id=@var{id} ,path=@var{path} +@item -chardev file ,id=@var{id} ,path=@var{path} [,append=@var{on|off}] Log all traffic received from the guest to a file.@@ -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. +@option{append} specifies that QEMU must truncate the file on open. +@option{append} is optional, default value is off. + @item -chardev pipe ,id=@var{id} ,path=@var{path}
Quoted 7 lines
qemu-options.hx Log all traffic received from the guest to a file. · line 2215
Quoted 1 line
qemu-options.hx +0
-0Create a two-way connection to the guest. The behaviour differs slightly betweenAssuming the commit msg is tweaked to remove mention of libvirt, then:
Reviewed-by Daniel P. Berrange <[email protected]>Regards,
Daniel
No problem.
Thank you for your help to proceed with this in libvirt support of this option :)
I'll resubmit this patch later after accumulating all feedback.
Den
Quoted 8 lines · Denis V. Lunev
commit
31e38a22a0c5a25646f966f001e1f5513d5a186d
Author: Olga Krishtal <[email protected]>
Date: Fri Dec 4 09:42:04 2015 +0300qemu-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.
In addition to Dan's comment about the dead sentence,
Quoted 2 lines
+@option{append} specifies that QEMU must truncate the file on open. +@option{append} is optional, default value is off.
This is backwards. It should read something more like:
@option{append} specifies that QEMU should append to the file. It defaults to off, for truncating the file instead of appending.
Or maybe:
@option{append} controls whether QEMU truncates the file (default if omitted, or if specified as off), or appends to the file (specified as on).
Check if there are other similar wordings to borrow from.
Signature · 2 lines
Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org