Skip to content

Commit 4e76f16

Browse files
Lint most manpages
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
1 parent 71c8107 commit 4e76f16

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+2716
-2699
lines changed

man/man1/zvol_wait.1

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,32 @@
1-
.Dd July 5, 2019
2-
.Dt ZVOL_WAIT 1 SMM
1+
.\"
2+
.\" This file and its contents are supplied under the terms of the
3+
.\" Common Development and Distribution License ("CDDL"), version 1.0.
4+
.\" You may only use this file in accordance with the terms of version
5+
.\" 1.0 of the CDDL.
6+
.\"
7+
.\" A full copy of the text of the CDDL should have accompanied this
8+
.\" source. A copy of the CDDL is also available via the Internet at
9+
.\" http://www.illumos.org/license/CDDL.
10+
.\"
11+
.Dd May 27, 2021
12+
.Dt ZVOL_WAIT 1
313
.Os
14+
.
415
.Sh NAME
516
.Nm zvol_wait
6-
.Nd Wait for ZFS volume links in
7-
.Em /dev
8-
to be created.
17+
.Nd wait for ZFS volume links to appear in /dev
918
.Sh SYNOPSIS
1019
.Nm
20+
.
1121
.Sh DESCRIPTION
12-
When a ZFS pool is imported, ZFS will register each ZFS volume
13-
(zvol) as a disk device with the system. As the disks are registered,
14-
.Xr \fBudev 7\fR
15-
will asynchronously create symlinks under
16-
.Em /dev/zvol
17-
using the zvol's name.
22+
When a ZFS pool is imported, the volumes within it will appear as block devices.
23+
As they're registered,
24+
.Xr udev 7
25+
asynchronously creates symlinks under
26+
.Pa /dev/zvol
27+
using the volumes' names.
1828
.Nm
19-
will wait for all those symlinks to be created before returning.
29+
will wait for all those symlinks to be created before exiting.
30+
.
2031
.Sh SEE ALSO
21-
.Xr \fBudev 7\fR
32+
.Xr udev 7

man/man8/mount.zfs.8

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
.
2727
.Sh NAME
2828
.Nm mount.zfs
29-
.Nd mount a ZFS filesystem
29+
.Nd mount ZFS filesystem
3030
.Sh SYNOPSIS
3131
.Nm
3232
.Op Fl sfnvh
@@ -44,7 +44,7 @@ to mount filesystem snapshots and
4444
ZFS filesystems, as well as by
4545
.Xr zfs 8
4646
when the
47-
.Ev Em $ZFS_MOUNT_HELPER
47+
.Sy ZFS_MOUNT_HELPER
4848
environment variable is not set.
4949
Users should should invoke either
5050
.Xr mount 8

man/man8/zdb.8

Lines changed: 69 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -8,54 +8,55 @@
88
.\" source. A copy of the CDDL is also available via the Internet at
99
.\" http://www.illumos.org/license/CDDL.
1010
.\"
11-
.\"
1211
.\" Copyright 2012, Richard Lowe.
1312
.\" Copyright (c) 2012, 2019 by Delphix. All rights reserved.
1413
.\" Copyright 2017 Nexenta Systems, Inc.
1514
.\" Copyright (c) 2017 Lawrence Livermore National Security, LLC.
1615
.\" Copyright (c) 2017 Intel Corporation.
1716
.\"
1817
.Dd October 7, 2020
19-
.Dt ZDB 8 SMM
18+
.Dt ZDB 8
2019
.Os
20+
.
2121
.Sh NAME
2222
.Nm zdb
23-
.Nd display zpool debugging and consistency information
23+
.Nd display ZFS storage pool debugging and consistency information
2424
.Sh SYNOPSIS
2525
.Nm
2626
.Op Fl AbcdDFGhikLMPsvXYy
27-
.Op Fl e Oo Fl V Oc Op Fl p Ar path ...
27+
.Op Fl e Oo Fl V Oc Oo Fl p Ar path Oc Ns
2828
.Op Fl I Ar inflight I/Os
29-
.Oo Fl o Ar var Ns = Ns Ar value Oc Ns ...
29+
.Oo Fl o Ar var Ns = Ns Ar value Oc Ns
3030
.Op Fl t Ar txg
3131
.Op Fl U Ar cache
3232
.Op Fl x Ar dumpdir
33-
.Op Ar poolname[/dataset | objset ID]
34-
.Op Ar object | range ...
33+
.Op Ar poolname Ns Op / Ns Ar dataset | objset ID
34+
.Op Ar object Ns | Ns Ar range Ns
3535
.Nm
3636
.Op Fl AdiPv
37-
.Op Fl e Oo Fl V Oc Op Fl p Ar path ...
37+
.Op Fl e Oo Fl V Oc Oo Fl p Ar path Oc Ns
3838
.Op Fl U Ar cache
39-
.Ar poolname[/dataset | objset ID] Op Ar object | range ...
39+
.Ar poolname Ns Op Ar / Ns Ar dataset | objset ID
40+
.Op Ar object Ns | Ns Ar range Ns
4041
.Nm
4142
.Fl C
4243
.Op Fl A
4344
.Op Fl U Ar cache
4445
.Nm
4546
.Fl E
4647
.Op Fl A
47-
.Ar word0 Ns \&: Ns Ar word1 Ns :...: Ns Ar word15
48+
.Ar word0 : Ns Ar word1 Ns :: Ns Ar word15
4849
.Nm
4950
.Fl l
5051
.Op Fl Aqu
5152
.Ar device
5253
.Nm
5354
.Fl m
5455
.Op Fl AFLPXY
55-
.Op Fl e Oo Fl V Oc Op Fl p Ar path ...
56+
.Op Fl e Oo Fl V Oc Oo Fl p Ar path Oc Ns
5657
.Op Fl t Ar txg
5758
.Op Fl U Ar cache
58-
.Ar poolname Op Ar vdev Op Ar metaslab ...
59+
.Ar poolname Op Ar vdev Oo Ar metaslab Oc Ns
5960
.Nm
6061
.Fl O
6162
.Ar dataset path
@@ -65,15 +66,16 @@
6566
.Nm
6667
.Fl R
6768
.Op Fl A
68-
.Op Fl e Oo Fl V Oc Op Fl p Ar path ...
69+
.Op Fl e Oo Fl V Oc Oo Fl p Ar path Oc Ns
6970
.Op Fl U Ar cache
70-
.Ar poolname vdev Ns \&: Ns Ar offset Ns \&: Ns Ar [<lsize>/]<psize> Ns Op : Ns Ar flags
71+
.Ar poolname vdev : Ns Ar offset : Ns Oo Ar lsize Ns / Oc Ns Ar psize Ns Op : Ns Ar flags
7172
.Nm
7273
.Fl S
7374
.Op Fl AP
74-
.Op Fl e Oo Fl V Oc Op Fl p Ar path ...
75+
.Op Fl e Oo Fl V Oc Oo Fl p Ar path Oc Ns
7576
.Op Fl U Ar cache
7677
.Ar poolname
78+
.
7779
.Sh DESCRIPTION
7880
The
7981
.Nm
@@ -99,11 +101,11 @@ or
99101
.Qq Sy @
100102
characters, it is interpreted as a pool name.
101103
The root dataset can be specified as
102-
.Ar pool Ns /
103-
.Pq pool name followed by a slash .
104+
.Qq Ar pool Ns / .
104105
.Pp
105106
When operating on an imported and active pool it is possible, though unlikely,
106107
that zdb may interpret inconsistent pool data and behave erratically.
108+
.
107109
.Sh OPTIONS
108110
Display options:
109111
.Bl -tag -width Ds
@@ -143,27 +145,30 @@ those specific objects or ranges only.
143145
.Pp
144146
An object ID range is specified in terms of a colon-separated tuple of
145147
the form
146-
.Ao start Ac Ns : Ns Ao end Ac Ns Op Ns : Ns Ao flags Ac Ns .
148+
.Ao start Ac : Ns Ao end Ac Ns Op : Ns Ao flags Ac .
147149
The fields
148150
.Ar start
149151
and
150152
.Ar end
151153
are integer object identifiers that denote the upper and lower bounds
152-
of the range. An
154+
of the range.
155+
An
153156
.Ar end
154-
value of -1 specifies a range with no upper bound. The
157+
value of -1 specifies a range with no upper bound.
158+
The
155159
.Ar flags
156160
field optionally specifies a set of flags, described below, that control
157-
which object types are dumped. By default, all object types are dumped. A minus
158-
sign
161+
which object types are dumped.
162+
By default, all object types are dumped.
163+
A minus sign
159164
.Pq -
160165
negates the effect of the flag that follows it and has no effect unless
161166
preceded by the
162167
.Ar A
163-
flag. For example, the range 0:-1:A-d will dump all object types except
164-
for directories.
168+
flag.
169+
For example, the range 0:-1:A-d will dump all object types except for directories.
165170
.Pp
166-
.Bl -tag -compact
171+
.Bl -tag -compact -width Ds
167172
.It Sy A
168173
Dump all objects (this is the default)
169174
.It Sy d
@@ -198,7 +203,7 @@ Display the statistics independently for each deduplication table.
198203
Dump the contents of the deduplication tables describing duplicate blocks.
199204
.It Fl DDDDD
200205
Also dump the contents of the deduplication tables describing unique blocks.
201-
.It Fl E Ar word0 Ns \&: Ns Ar word1 Ns :...: Ns Ar word15
206+
.It Fl E Ar word0 : Ns Ar word1 Ns :: Ns Ar word15
202207
Decode and display block from an embedded block pointer specified by the
203208
.Ar word
204209
arguments.
@@ -218,18 +223,21 @@ Note, the on disk format of the pool is not reverted to the checkpointed state.
218223
Read the vdev labels and L2ARC header from the specified device.
219224
.Nm Fl l
220225
will return 0 if valid label was found, 1 if error occurred, and 2 if no valid
221-
labels were found. The presence of L2ARC header is indicated by a specific
222-
sequence (L2ARC_DEV_HDR_MAGIC). If there is an accounting error in the size
223-
or the number of L2ARC log blocks
226+
labels were found.
227+
The presence of L2ARC header is indicated by a specific
228+
sequence (L2ARC_DEV_HDR_MAGIC).
229+
If there is an accounting error in the size or the number of L2ARC log blocks
224230
.Nm Fl l
225-
will return 1. Each unique configuration is displayed only
226-
once.
231+
will return 1.
232+
Each unique configuration is displayed only once.
227233
.It Fl ll Ar device
228-
In addition display label space usage stats. If a valid L2ARC header was found
234+
In addition display label space usage stats.
235+
If a valid L2ARC header was found
229236
also display the properties of log blocks used for restoring L2ARC contents
230237
(persistent L2ARC).
231238
.It Fl lll Ar device
232-
Display every configuration, unique or not. If a valid L2ARC header was found
239+
Display every configuration, unique or not.
240+
If a valid L2ARC header was found
233241
also display the properties of log entries in log blocks used for restoring
234242
L2ARC contents (persistent L2ARC).
235243
.Pp
@@ -239,8 +247,8 @@ option is also specified, don't print the labels or the L2ARC header.
239247
.Pp
240248
If the
241249
.Fl u
242-
option is also specified, also display the uberblocks on this device. Specify
243-
multiple times to increase verbosity.
250+
option is also specified, also display the uberblocks on this device.
251+
Specify multiple times to increase verbosity.
244252
.It Fl L
245253
Disable leak detection and the loading of space maps.
246254
By default,
@@ -291,7 +299,7 @@ This option can be combined with
291299
.Fl v
292300
for increasing verbosity.
293301
.It Xo
294-
.Fl R Ar poolname vdev Ns \&: Ns Ar offset Ns \&: Ns Ar [<lsize>/]<psize> Ns Op : Ns Ar flags
302+
.Fl R Ar poolname vdev : Ns Ar offset : Ns Oo Ar lsize Ns / Oc Ns Ar psize Ns Op : Ns Ar flags
295303
.Xc
296304
Read and display a block from the specified device.
297305
By default the block is displayed as a hex dump, but see the description of the
@@ -315,7 +323,8 @@ Print block pointer at hex offset
315323
.It Sy c
316324
Calculate and display checksums
317325
.It Sy d
318-
Decompress the block. Set environment variable
326+
Decompress the block.
327+
Set environment variable
319328
.Nm ZDB_NO_ZLE
320329
to skip zle when guessing.
321330
.It Sy e
@@ -352,7 +361,7 @@ Enable panic recovery, certain errors which would otherwise be fatal are
352361
demoted to warnings.
353362
.It Fl AAA
354363
Do not abort if asserts fail and also enable panic recovery.
355-
.It Fl e Op Fl p Ar path ...
364+
.It Fl e Oo Fl p Ar path Oc Ns
356365
Operate on an exported pool, not present in
357366
.Pa /etc/zfs/zpool.cache .
358367
The
@@ -382,14 +391,16 @@ The default value is 200.
382391
This option affects the performance of the
383392
.Fl c
384393
option.
385-
.It Fl o Ar var Ns = Ns Ar value ...
394+
.It Fl o Ar var Ns = Ns Ar value
386395
Set the given global libzpool variable to the provided value.
387396
The value must be an unsigned 32-bit integer.
388397
Currently only little-endian systems are supported to avoid accidentally setting
389398
the high 32 bits of 64-bit variables.
390399
.It Fl P
391-
Print numbers in an unscaled form more amenable to parsing, eg. 1000000 rather
392-
than 1M.
400+
Print numbers in an unscaled form more amenable to parsing, e.g.\&
401+
.Sy 1000000
402+
rather than
403+
.Sy 1M .
393404
.It Fl t Ar transaction
394405
Specify the highest transaction to use when searching for uberblocks.
395406
See also the
@@ -432,51 +443,51 @@ option, with more occurrences enabling more verbosity.
432443
.Pp
433444
If no options are specified, all information about the named pool will be
434445
displayed at default verbosity.
446+
.
435447
.Sh EXAMPLES
436448
.Bl -tag -width Ds
437449
.It Xo
438-
.Sy Example 1
450+
.Sy Example 1 :
439451
Display the configuration of imported pool
440-
.Pa rpool
452+
.Ar rpool
441453
.Xc
442454
.Bd -literal
443-
# zdb -C rpool
444-
455+
.No # Nm zdb Fl C Ar rpool
445456
MOS Configuration:
446457
version: 28
447458
name: 'rpool'
448-
...
459+
449460
.Ed
450461
.It Xo
451-
.Sy Example 2
462+
.Sy Example 2 :
452463
Display basic dataset information about
453-
.Pa rpool
464+
.Ar rpool
454465
.Xc
455466
.Bd -literal
456-
# zdb -d rpool
467+
.No # Nm zdb Fl d Ar rpool
457468
Dataset mos [META], ID 0, cr_txg 4, 26.9M, 1051 objects
458469
Dataset rpool/swap [ZVOL], ID 59, cr_txg 356, 486M, 2 objects
459-
...
470+
460471
.Ed
461472
.It Xo
462-
.Sy Example 3
473+
.Sy Example 3 :
463474
Display basic information about object 0 in
464-
.Pa rpool/export/home
475+
.Ar rpool/export/home
465476
.Xc
466477
.Bd -literal
467-
# zdb -d rpool/export/home 0
478+
.No # Nm zdb Fl d Ar rpool/export/home 0
468479
Dataset rpool/export/home [ZPL], ID 137, cr_txg 1546, 32K, 8 objects
469480

470481
Object lvl iblk dblk dsize lsize %full type
471482
0 7 16K 16K 15.0K 16K 25.00 DMU dnode
472483
.Ed
473484
.It Xo
474-
.Sy Example 4
485+
.Sy Example 4 :
475486
Display the predicted effect of enabling deduplication on
476-
.Pa rpool
487+
.Ar rpool
477488
.Xc
478489
.Bd -literal
479-
# zdb -S rpool
490+
.No # Nm zdb Fl S Ar rpool
480491
Simulated DDT histogram:
481492

482493
bucket allocated referenced
@@ -485,10 +496,11 @@ refcnt blocks LSIZE PSIZE DSIZE blocks LSIZE PSIZE DSIZE
485496
------ ------ ----- ----- ----- ------ ----- ----- -----
486497
1 694K 27.1G 15.0G 15.0G 694K 27.1G 15.0G 15.0G
487498
2 35.0K 1.33G 699M 699M 74.7K 2.79G 1.45G 1.45G
488-
...
499+
489500
dedup = 1.11, compress = 1.80, copies = 1.00, dedup * compress / copies = 2.00
490501
.Ed
491502
.El
503+
.
492504
.Sh SEE ALSO
493505
.Xr zfs 8 ,
494506
.Xr zpool 8

0 commit comments

Comments
 (0)