multipath-tools: document missing kpartx options in man and output
PATCH 1/1 multipath-tools: document missing kpartx options in man and output
Cc Christophe Varoqui <[email protected]>
Cc DM-DEVEL ML <[email protected]>
Signed-off-by Xose Vazquez Perez <[email protected]>
--- kpartx/Makefile | 2 +- kpartx/kpartx.8 | 8 ++++++-- kpartx/kpartx.c | 7 +++++-- 3 files changed, 12 insertions(+), 5 deletions(-)
kpartx/Makefile +1 -1
@@ -3,7 +3,7 @@ # include ../Makefile.inc -CFLAGS += $(BIN_CFLAGS) -I. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 +CFLAGS += $(BIN_CFLAGS) -I. -I$(multipathdir) -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 LDFLAGS += $(BIN_LDFLAGS) LIBDEPS += -ldevmapper
kpartx/kpartx.8 +6 -2
@@ -25,7 +25,7 @@ kpartx \- Create device maps from partition tables. .RB [\| \-p \|] .RB [\| \-f \|] .RB [\| \-g \|] -.RB [\| \-s \|] +.RB [\| \-s | \-n \|] .RB [\| \-v \|] .B wholedisk .
@@ -77,7 +77,11 @@ Force GUID partition table (GPT). . .TP .B \-s -Sync mode. Don't return until the partitions are created. +Sync mode (Default). Don't return until the partitions are created. +. +.TP +.B \-n +Nosync mode. Return before the partitions are created. . .TP .B \-v
kpartx/kpartx.c +5 -2
@@ -37,6 +37,7 @@#include "crc32.h" #include "lopart.h" #include "kpartx.h" +#include "version.h" #define SIZE (a) (sizeof(a)/sizeof((a)[0]))
@@ -95,7 +96,9 @@ int force_devmap=0;static int usage (void ) { -printf ("usage : kpartx [-a|-d|-l] [-f] [-v] wholedisk\n" ); +printf (VERSION_STRING ); +printf ("Usage:\n" ); +printf (" kpartx [-a|-d|-u|-l] [-r] [-p] [-f] [-g] [-s|-n] [-v] wholedisk\n" );printf ("\t-a add partition devmappings\n" );printf ("\t-r devmappings will be readonly\n" );printf ("\t-d del partition devmappings\n" );
@@ -106,7 +109,7 @@ usage(void) {printf ("\t-f force devmap create\n" );printf ("\t-v verbose\n" );printf ("\t-n nosync mode. Return before the partitions are created\n" ); -printf ("\t-s sync mode. Don't return until the partitions are created. Default.\n" ); +printf ("\t-s sync mode (Default). Don't return until the partitions are created\n" );return 1 ; }
Signature · 1 line
2.21.0-Tranquilo majete