Add --showkeys parameter description into dmsetup man page.
PATCH 1/2 Add --showkeys parameter description into dmsetup man page.
Also fix minor warning (-c is parameter) in man page formatting.
--- WHATS_NEW_DM | 1 + man/dmsetup.8.in | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-)
WHATS_NEW_DM +1 -0
@@ -1,5 +1,6 @@ Version 1.02.45 - ==================================== + Add --showkeys parameter description into dmsetup man page. Version 1.02.44 - 15th February 2010 ====================================
man/dmsetup.8.in +6 -3
@@ -54,7 +54,7 @@ dmsetup \- low level logical volume management .I [device_name] .br .B dmsetup table -.I [--target target_type] +.I [--target target_type] [--showkeys] .I [device_name] .br .B dmsetup wait
@@ -210,7 +210,8 @@ Outputs some brief information about the device in the form: Number of targets in the live table .br UUID -.IP \fBinfo -c|-C|--columns +.IP \fBinfo +.I -c|-C|--columns .I [--noheadings] [--separator separator] [-o fields] [-O|--sort sort_fields] .I [device_name] .br
@@ -312,13 +313,15 @@ Some targets such as recent (October 2006) versions of multipath may support the --noflush option. This lets outstanding I/O that has not yet reached the device to remain unflushed. .IP \fBtable -.I [--target target_type] +.I [--target target_type] [--showkeys] .I [device_name] .br Outputs the current table for the device in a format that can be fed back in using the create or load commands. With --target, only information relating to the specified target type is displayed. +By default encryption keys are suppressed in table output (crypt target) +unless --showkeys parameter is supplied. .IP \fBtargets .br Displays the names and versions of the currently-loaded targets.
Signature · 1 line
1.7.0
PATCH 2/2 Add --help dmsetup option as the synonym for help command.
Many people (including myself) are repeatedly confused that dmsetup doesn't understand usual --help option...
--- WHATS_NEW_DM | 1 + man/dmsetup.8.in | 4 ++++ tools/dmsetup.c | 14 ++++++++++++-- 3 files changed, 17 insertions(+), 2 deletions(-)
WHATS_NEW_DM +1 -0
@@ -1,6 +1,7 @@ Version 1.02.45 - ==================================== Add --showkeys parameter description into dmsetup man page. + Add --help option as the synonym for help command. Version 1.02.44 - 15th February 2010 ====================================
man/dmsetup.8.in +4 -0
@@ -112,6 +112,10 @@ Invoking the command as \fBdevmap_name\fP is equivalent to .IP \fB-c|-C|--columns .br Display output in columns rather than as Field: Value lines. +.IP \fB-h|--help +.br +Outputs a summary of the commands available, optionally including +the list of report fields (synonym with \fBhelp\fP command). .IP \fB--inactive .br When returning any table information from the kernel report on the
tools/dmsetup.c +12 -2
@@ -124,6 +124,7 @@ enum {EXEC_ARG ,FORCE_ARG ,GID_ARG , +HELP_ARG ,INACTIVE_ARG ,MAJOR_ARG , MINOR_ARG,
@@ -2720,7 +2721,8 @@ static void _usage(FILE *out)int i;fprintf (out,"Usage:\n\n" ); -fprintf (out,"dmsetup [--version] [-v|--verbose [-v|--verbose ...]]\n" +fprintf (out,"dmsetup [--version] [-h|--help [-c|-C|--columns]]\n" +" [-v|--verbose [-v|--verbose ...]]\n" " [-r|--readonly] [--noopencount] [--nolockfs] [--inactive]\n" " [--udevcookie] [--noudevrules] [--noudevsync] [-y|--yes]\n" " [--readahead [+]<sectors>|auto|none]\n"
@@ -3083,6 +3085,7 @@ static int _process_switches(int *argc, char ***argv, const char *dev_dir) {"exec", 1, &ind, EXEC_ARG}, {"force", 0, &ind, FORCE_ARG}, {"gid", 1, &ind, GID_ARG}, + {"help", 0, &ind, HELP_ARG}, {"inactive", 0, &ind, INACTIVE_ARG}, {"major", 1, &ind, MAJOR_ARG}, {"minor", 1, &ind, MINOR_ARG},
@@ -3167,10 +3170,12 @@ static int _process_switches(int *argc, char ***argv, const char *dev_dir) optarg =0 ; optind =OPTIND_INIT ; -while ((ind =-1 , c =GETOPTLONG_FN (*argc, *argv,"cCfG:j:m:M:no:O:ru:U:vy" , +while ((ind =-1 , c =GETOPTLONG_FN (*argc, *argv,"cCfG:hj:m:M:no:O:ru:U:vy" , long_options,NULL )) !=-1 ) {if (c ==':' || c =='?' )return 0 ; +if (c =='h' || ind ==HELP_ARG ) + _switches[HELP_ARG ]++;if (c =='c' || c =='C' || ind ==COLS_ARG ) _switches[COLS_ARG ]++;if (c =='f' || ind ==FORCE_ARG )
@@ -3329,6 +3334,11 @@ int main(int argc, char **argv) goto out; } +if (_switches[HELP_ARG ]) { + c =_find_command ("help" ); + goto doit; + } +if (_switches[VERSION_ARG ]) { c =_find_command ("version" ); goto doit;
Signature · 1 line
1.7.0