From 28f8deb29a2a1e6fa8e2845671f36db558030d88 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Tue, 10 Apr 2012 12:21:03 +0200 Subject: [PATCH] virsh: Clarify use of the --managed-save flag for the list command The documentation for the flag doesn't clearly state that the flag only enhances the output and the user needs to specify other flags to list inactive domains, that are enhanced by this flag. (cherry picked from commit cc5100654b2aff0933ab4aa447a71bfd7ddbf2bd) --- tools/virsh.c | 2 +- tools/virsh.pod | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/virsh.c b/tools/virsh.c index cfdd040b5e..7477d322a3 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -924,7 +924,7 @@ static const vshCmdOptDef opts_list[] = { {"name", VSH_OT_BOOL, 0, N_("list domain names only")}, {"table", VSH_OT_BOOL, 0, N_("list table (default)")}, {"managed-save", VSH_OT_BOOL, 0, - N_("mark domains with managed save state")}, + N_("mark inactive domains with managed save state")}, {"title", VSH_OT_BOOL, 0, N_("show short domain description")}, {NULL, 0, 0, NULL} }; diff --git a/tools/virsh.pod b/tools/virsh.pod index a60e66770a..c6e0ff3c54 100644 --- a/tools/virsh.pod +++ b/tools/virsh.pod @@ -381,8 +381,9 @@ into s3 state. =back If I<--managed-save> is specified, then domains that have managed save -state (only possible if they are in the B state) will -instead show as B in the listing. This flag is usable only with the +state (only possible if they are in the B state, so you need to +specify I<--inactive> or I<--all> to actually list them) will instead +show as B in the listing. This flag is usable only with the default I<--table> output. If I<--name> is specified, domain names are printed instead of the table