Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=db579b9e936df14edb9c0…
Commit: db579b9e936df14edb9c06830c21e5b5aef666a4
Parent: dece723dc72f93cb1ea9c21bd1a6518435832c88
Author: David Teigland <teigland(a)redhat.com>
AuthorDate: Mon Apr 3 16:17:37 2017 -0500
Committer: David Teigland <teigland(a)redhat.com>
CommitterDate: Mon Apr 3 16:17:37 2017 -0500
help: include cmd def info in verbose output
It can sometimes be important to correlate a
command with its cmd def entry, so include
the cross reference info in help -vv output.
---
tools/lvmcmdline.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/tools/lvmcmdline.c b/tools/lvmcmdline.c
index bf7e216..bb107d4 100644
--- a/tools/lvmcmdline.c
+++ b/tools/lvmcmdline.c
@@ -1830,6 +1830,11 @@ static int _usage(const char *name, int longhelp, int skip_notes)
if ((_cmdline.commands[i].cmd_flags & CMD_FLAG_SECONDARY_SYNTAX) && !show_full)
continue;
+ log_very_verbose("Command definition index %d enum %d id %s",
+ _cmdline.commands[i].command_index,
+ _cmdline.commands[i].command_enum,
+ _cmdline.commands[i].command_id);
+
print_usage(&_cmdline.commands[i], show_full, 1);
cmd = &_cmdline.commands[i];
}
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=51ff707ac859b6ab1ba1b…
Commit: 51ff707ac859b6ab1ba1bc6cc8d9ea154632f2f7
Parent: e0f284d3728d3381966dd290e205951ed99e54f9
Author: David Teigland <teigland(a)redhat.com>
AuthorDate: Mon Apr 3 14:15:29 2017 -0500
Committer: David Teigland <teigland(a)redhat.com>
CommitterDate: Mon Apr 3 14:15:29 2017 -0500
man: fix description of --partial option
---
tools/args.h | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/tools/args.h b/tools/args.h
index 8d6b44d..24e3918 100644
--- a/tools/args.h
+++ b/tools/args.h
@@ -1223,13 +1223,11 @@ arg(maxphysicalvolumes_ARG, 'p', "maxphysicalvolumes", uint32_VAL, 0, 0,
arg(permission_ARG, 'p', "permission", permission_VAL, 0, 0,
"Set access permission to read only \\fBr\\fP or read and write \\fBrw\\fP.\n")
-/* FIXME: I left out some of the previous description that didn't sound correct. */
-
arg(partial_ARG, 'P', "partial", 0, 0, 0,
- "When set, the tools will do their best to provide access to VGs\n"
- "that are only partially available (one or more PVs belonging\n"
- "to the VG are missing from the system). Metadata may not be\n"
- "changed with this option.\n")
+ "Commands will do their best to activate LVs with missing PV extents.\n"
+ "Missing extents may be replaced with error or zero segments\n"
+ "according to the lvm.conf missing_stripe_filler setting.\n"
+ "Metadata may not be changed with this option.\n")
/* Not used */
arg(physicalvolume_ARG, 'P', "physicalvolume", 0, 0, 0, NULL)