From: Eric Blake <eblake@redhat.com>
To: marcandre.lureau@redhat.com, qemu-devel@nongnu.org
Cc: den@openvz.org, mdroth@linux.vnet.ibm.com
Subject: Re: [Qemu-devel] [PATCH v4 13/13] qga: start a man page
Date: Fri, 28 Aug 2015 15:44:49 -0600 [thread overview]
Message-ID: <55E0D651.2090900@redhat.com> (raw)
In-Reply-To: <1440632099-5169-14-git-send-email-marcandre.lureau@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 3904 bytes --]
On 08/26/2015 05:34 PM, marcandre.lureau@redhat.com wrote:
> From: Marc-André Lureau <marcandre.lureau@redhat.com>
>
> Add a simple man page for the qemu agent.
>
> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
> ---
> 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 @@
> +@example
> +@c 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]...
> +@c man end
> +@end example
> +
> +@c 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:
> +@c man begin OPTIONS
> +@table @option
> +@item -m, --method=@var{method}
> + Transport method: one of @samp{unix-listen}, @samp{virtio-serial}, or
> + @samp{isa-serial} (@samp{virtio-serial} is the default).
> +
> +@item -p, --path=@var{path}
> + 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
> +
> +@item -l, --logfile=@var{path}
> + 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).
> +
> +@item -f, --pidfile=@var{path}
> + Specify pid file (default is @samp{/var/run/qemu-ga.pid}).
Same bit about 'path', here and below (I'll quit pointing it out).
> +
> +@item -F, --fsfreeze-hook=@var{path}
> + 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]
> +@item -b, --blacklist=@var{list}
> + 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 #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
next prev parent reply other threads:[~2015-08-28 21:45 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-26 23:34 [Qemu-devel] [PATCH v4 00/13] qemu-ga: add a configuration file marcandre.lureau
2015-08-26 23:34 ` [Qemu-devel] [PATCH v4 01/13] qga: misc spelling marcandre.lureau
2015-08-26 23:34 ` [Qemu-devel] [PATCH v4 02/13] qga: use exit() when parsing options marcandre.lureau
2015-08-26 23:34 ` [Qemu-devel] [PATCH v4 03/13] qga: move string split in separate function marcandre.lureau
2015-08-27 9:18 ` Denis V. Lunev
2015-08-26 23:34 ` [Qemu-devel] [PATCH v4 04/13] qga: make split_list() return allocated strings marcandre.lureau
2015-08-27 9:13 ` Denis V. Lunev
2015-08-27 9:17 ` Denis V. Lunev
2015-08-27 14:30 ` Marc-André Lureau
2015-08-27 16:15 ` Denis V. Lunev
2015-08-26 23:34 ` [Qemu-devel] [PATCH v4 05/13] qga: rename 'path' to 'channel_path' marcandre.lureau
2015-08-26 23:34 ` [Qemu-devel] [PATCH v4 06/13] qga: copy argument strings marcandre.lureau
2015-08-27 9:53 ` Denis V. Lunev
2015-08-26 23:34 ` [Qemu-devel] [PATCH v4 07/13] qga: move option parsing to separate function marcandre.lureau
2015-08-26 23:34 ` [Qemu-devel] [PATCH v4 08/13] qga: fill default options in main() marcandre.lureau
2015-08-26 23:34 ` [Qemu-devel] [PATCH v4 09/13] qga: move agent run in a separate function marcandre.lureau
2015-08-26 23:34 ` [Qemu-devel] [PATCH v4 10/13] qga: free a bit more marcandre.lureau
2015-08-26 23:34 ` [Qemu-devel] [PATCH v4 11/13] qga: add an optional qemu-ga.conf system configuration marcandre.lureau
2015-08-27 10:02 ` Denis V. Lunev
2015-08-26 23:34 ` [Qemu-devel] [PATCH v4 12/13] qga: add --dump-conf option marcandre.lureau
2015-08-26 23:38 ` Marc-André Lureau
2015-08-27 9:56 ` Denis V. Lunev
2015-08-27 9:57 ` Denis V. Lunev
2015-08-26 23:34 ` [Qemu-devel] [PATCH v4 13/13] qga: start a man page marcandre.lureau
2015-08-28 21:44 ` Eric Blake [this message]
2015-08-31 23:28 ` Michael Roth
2015-09-01 15:11 ` Eric Blake
2015-08-27 16:32 ` [Qemu-devel] [PATCH v4 00/13] qemu-ga: add a configuration file Denis V. Lunev
2015-08-27 23:47 ` Michael Roth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55E0D651.2090900@redhat.com \
--to=eblake@redhat.com \
--cc=den@openvz.org \
--cc=marcandre.lureau@redhat.com \
--cc=mdroth@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).