Skip to content

Commit dd4769a

Browse files
richlowebehlendorf
authored andcommitted
Illumos #2088 zdb could use a reasonable manual page
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com> Reviewed by: Garrett D'Amore <garrett@damore.org> Reviewed by: George Wilson <gwilson@zfsmail.com> Reviewed by: Steve Gonczi <gonczi@comcast.net> Reviewed by: Richard Elling <richard.elling@richardelling.com> Approved by: Garrett D'Amore <garrett@damore.org> References: https://www.illumos.org/issues/2088 Ported by: Cyril Plisko <cyril.plisko@mountall.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #682
1 parent 44867b6 commit dd4769a

File tree

2 files changed

+470
-48
lines changed

2 files changed

+470
-48
lines changed

cmd/zdb/zdb.c

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,16 @@ static void
101101
usage(void)
102102
{
103103
(void) fprintf(stderr,
104-
"Usage: %s [-CumdibcsDvhL] poolname [object...]\n"
105-
" %s [-div] dataset [object...]\n"
106-
" %s -m [-L] poolname [vdev [metaslab...]]\n"
107-
" %s -R poolname vdev:offset:size[:flags]\n"
108-
" %s -S poolname\n"
109-
" %s -l [-u] device\n"
110-
" %s -C\n\n",
104+
"Usage: %s [-CumdibcsDvhLXFPA] [-t txg] [-e [-p path...]] "
105+
"poolname [object...]\n"
106+
" %s [-divPA] [-e -p path...] dataset [object...]\n"
107+
" %s -m [-LXFPA] [-t txg] [-e [-p path...]] "
108+
"poolname [vdev [metaslab...]]\n"
109+
" %s -R [-A] [-e [-p path...]] poolname "
110+
"vdev:offset:size[:flags]\n"
111+
" %s -S [-PA] [-e [-p path...]] poolname\n"
112+
" %s -l [-uA] device\n"
113+
" %s -C [-A] [-U config]\n\n",
111114
cmdname, cmdname, cmdname, cmdname, cmdname, cmdname, cmdname);
112115

113116
(void) fprintf(stderr, " Dataset name must include at least one "
@@ -149,7 +152,7 @@ usage(void)
149152
"has altroot/not in a cachefile\n");
150153
(void) fprintf(stderr, " -p <path> -- use one or more with "
151154
"-e to specify path to vdev dir\n");
152-
(void) fprintf(stderr, " -P print numbers parsable\n");
155+
(void) fprintf(stderr, " -P print numbers in parseable form\n");
153156
(void) fprintf(stderr, " -t <txg> -- highest txg to use when "
154157
"searching for uberblocks\n");
155158
(void) fprintf(stderr, "Specify an option more than once (e.g. -bb) "

0 commit comments

Comments
 (0)