qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v4 13/13] qga: start a man page


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH v4 13/13] qga: start a man page
Date: Fri, 28 Aug 2015 15:44:49 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0

On 08/26/2015 05:34 PM, address@hidden wrote:
> From: Marc-André Lureau <address@hidden>
> 
> Add a simple man page for the qemu agent.
> 
> Signed-off-by: Marc-André Lureau <address@hidden>
> Reviewed-by: Michael Roth <address@hidden>
> ---
>  Makefile      |  14 +++++-
>  qemu-doc.texi |   6 +++
>  qemu-ga.texi  | 136 
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  3 files changed, 154 insertions(+), 2 deletions(-)
>  create mode 100644 qemu-ga.texi
> 

> +++ b/qemu-ga.texi
> @@ -0,0 +1,136 @@
> address@hidden
> address@hidden man begin SYNOPSIS
> +usage: qemu-ga [-m <method> -p <path>] [OPTION]...

This implies that -m/-p are linked (either both or neither must be
specified); and is a bit confusing since they are also OPTIONs (why are
they called out when the others are not).  Might be simpler to just use:

usage: qemu-ga [OPTION]...

> address@hidden man end
> address@hidden example
> +
> address@hidden man begin DESCRIPTION
> +
> +The QEMU Guest Agent is a daemon that allows the host to perform
> +various operations in the guest, such as:

How about adding some words to make it obvious that it is not useful on
bare metal and is intended for virtualized guests:

The QEMU Guest Agent is a daemon intended to be run in virtual machines.
 It allows the hypervisor host to perform various operations in the
guest, such as:

> address@hidden man begin OPTIONS
> address@hidden @option
> address@hidden -m, address@hidden
> +  Transport method: one of @samp{unix-listen}, @samp{virtio-serial}, or
> +  @samp{isa-serial} (@samp{virtio-serial} is the default).
> +
> address@hidden -p, address@hidden
> +  Device/socket path (the default for virtio-serial is:
> +  @samp{/dev/virtio-ports/org.qemu.guest_agent.0},
> +  the default for isa-serial is: @samp{/dev/ttyS0})

s/is:/is/ in both places

> +
> address@hidden -l, address@hidden
> +  Set log file path, logs to stderr by default.

Also, 'path' is an annoying term; POSIX folks use it for any file name,
while GNU folks claim it should only be used for colon-separated lists
of directories as in PATH=.  'name' or 'location' might be better,
although I personally don't care strongly enough to reject on just that
choice of naming.

Elsewhere you've listed defaults in (); maybe:

Set log file (default is stderr).

> +
> address@hidden -f, address@hidden
> +  Specify pid file (default is @samp{/var/run/qemu-ga.pid}).

Same bit about 'path', here and below (I'll quit pointing it out).

> +
> address@hidden -F, address@hidden
> +  Enable fsfreeze hook. Accepts an optional argument that specifies
> +  script to run on freeze/thaw. Script will be called with
> +  'freeze'/'thaw' arguments accordingly.  (default is
> +  @samp{/etc/qemu/fsfreeze-hook}) If using -F with an argument, do

Place the '.' after the (), not before, since the 'If using' sentence
starts a new thought.

> +  not follow -F with a space. (for example:
> +  @samp{-F/var/run/fsfreezehook.sh})

And again.

[aside: short options that take an optional argument are wonky; POSIX
discourages their use in new programs, and GNU recommends that only long
options have optional arguments. But we've already shipped it that way,
so too late to change it now]

> address@hidden -b, address@hidden
> +  Comma-separated list of RPCs to disable (no spaces, @samp{?} to list
> +  available RPCs).
> +

'?' requires shell quoting to avoid unintended globbing based on the
contents of the current directory; in the past, we've updated 'qemu' to
take 'help' as a synonym anywhere that '?' was special, so that you can
query without worrying about quoting.  We should probably do likewise
for the agent daemon; but as a separate patch.

Overall, fairly clean.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]