Sort and unify a bit. Add more macros.
This commit is contained in:
parent
1b979fcca7
commit
400b2bc13c
|
@ -1,4 +1,4 @@
|
||||||
.\" $NetBSD: disklabel.8,v 1.69 2019/07/02 16:23:47 mlelstv Exp $
|
.\" $NetBSD: disklabel.8,v 1.70 2019/07/02 16:47:19 wiz Exp $
|
||||||
.\"
|
.\"
|
||||||
.\" Copyright (c) 1987, 1988, 1991, 1993
|
.\" Copyright (c) 1987, 1988, 1991, 1993
|
||||||
.\" The Regents of the University of California. All rights reserved.
|
.\" The Regents of the University of California. All rights reserved.
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
.\"
|
.\"
|
||||||
.\" @(#)disklabel.8 8.2 (Berkeley) 4/19/94
|
.\" @(#)disklabel.8 8.2 (Berkeley) 4/19/94
|
||||||
.\"
|
.\"
|
||||||
.Dd September 11, 2016
|
.Dd July 2, 2019
|
||||||
.Dt DISKLABEL 8
|
.Dt DISKLABEL 8
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
|
@ -104,9 +104,9 @@ When writing the label, it can be used to change the drive identification,
|
||||||
the disk partitions on the drive, or to replace a damaged label.
|
the disk partitions on the drive, or to replace a damaged label.
|
||||||
.Pp
|
.Pp
|
||||||
The
|
The
|
||||||
.Fl e , i , l , R , w , N ,
|
.Fl e , i , l , N , R , W ,
|
||||||
and
|
and
|
||||||
.Fl W
|
.Fl w
|
||||||
options determine the basic operation.
|
options determine the basic operation.
|
||||||
If none are specified the label
|
If none are specified the label
|
||||||
is displayed.
|
is displayed.
|
||||||
|
@ -125,21 +125,21 @@ Interactively update the existing label and write it back to the disk.
|
||||||
.It Fl l
|
.It Fl l
|
||||||
Show all known file system types (those that can be specified along a
|
Show all known file system types (those that can be specified along a
|
||||||
partition within the label) and exit.
|
partition within the label) and exit.
|
||||||
|
.It Fl N
|
||||||
|
Disallow writes to the disk sector that contains the label.
|
||||||
|
This is the default state.
|
||||||
.It Fl R
|
.It Fl R
|
||||||
Write (restore) a label by reading it from
|
Write (restore) a label by reading it from
|
||||||
.Ar protofile .
|
.Ar protofile .
|
||||||
The file should be in the same format as the default output.
|
The file should be in the same format as the default output.
|
||||||
|
.It Fl W
|
||||||
|
Allow writes to the disk sector that contains the label.
|
||||||
|
This state may not persist if no programs have the disk open.
|
||||||
.It Fl w
|
.It Fl w
|
||||||
Write a standard label for the specified
|
Write a standard label for the specified
|
||||||
.Ar disktype .
|
.Ar disktype .
|
||||||
See
|
See
|
||||||
.Xr disktab 5 .
|
.Xr disktab 5 .
|
||||||
.It Fl N
|
|
||||||
Disallow writes to the disk sector that contains the label.
|
|
||||||
This is the default state.
|
|
||||||
.It Fl W
|
|
||||||
Allow writes to the disk sector that contains the label.
|
|
||||||
This state may not persist if no programs have the disk open.
|
|
||||||
.El
|
.El
|
||||||
.Pp
|
.Pp
|
||||||
The majority of the rest of the options affect more than one form of the
|
The majority of the rest of the options affect more than one form of the
|
||||||
|
@ -192,35 +192,37 @@ even if
|
||||||
is specified.
|
is specified.
|
||||||
Implies
|
Implies
|
||||||
.Fl r .
|
.Fl r .
|
||||||
|
.It Fl f Ar disktab
|
||||||
|
Specify the name of a file to use instead of
|
||||||
|
.Pa /etc/disktab .
|
||||||
.It Fl I
|
.It Fl I
|
||||||
If a label cannot be read from
|
If a label cannot be read from
|
||||||
.Ar disk
|
.Ar disk
|
||||||
request the default one from the kernel.
|
request the default one from the kernel.
|
||||||
Implies
|
Implies
|
||||||
.Fl r .
|
.Fl r .
|
||||||
.It Fl f Ar disktab
|
.It Fl L Ar sector
|
||||||
Specify the name of a file to use instead of
|
Specify the relative sector number of the disklabel
|
||||||
.Pa /etc/disktab .
|
similar to the environment variable
|
||||||
|
.Ev DISKLABELSECTOR .
|
||||||
.It Fl M Ar machine
|
.It Fl M Ar machine
|
||||||
Specify the machine to generate a label for.
|
Specify the machine to generate a label for.
|
||||||
Defaults to the current machine it is compiled for.
|
Defaults to the current machine it is compiled for.
|
||||||
Specific details can be overridden via environment
|
Specific details can be overridden via environment
|
||||||
and with the options
|
and with the options
|
||||||
.Fl B, L, O, p, m
|
.Fl B , L , m , n , O ,
|
||||||
and
|
and
|
||||||
.Fl n.
|
.Fl P .
|
||||||
.It Fl L
|
|
||||||
num specify the relative sector number of the disklabel
|
|
||||||
similar to the environment variable DISKLABELSECTOR.
|
|
||||||
.It Fl O
|
|
||||||
num specify the relative byte offset of the disklabel.
|
|
||||||
similar to the environment variable DISKLABELOFFSET.
|
|
||||||
.It Fl P
|
|
||||||
num specify the size of the partition table.
|
|
||||||
.It Fl m
|
.It Fl m
|
||||||
expect the label to have an MBR.
|
Expect the label to have an MBR.
|
||||||
.It Fl n
|
.It Fl n
|
||||||
expect the label not to have an MBR.
|
Expect the label not to have an MBR.
|
||||||
|
.It Fl O Ar offset
|
||||||
|
Specify the relative byte offset of the disklabel
|
||||||
|
similar to the environment variable
|
||||||
|
.Ev DISKLABELOFFSET .
|
||||||
|
.It Fl P Ar size
|
||||||
|
Specify the size of the partition table.
|
||||||
.It Fl r
|
.It Fl r
|
||||||
Read/write the disk directly rather than using
|
Read/write the disk directly rather than using
|
||||||
.Xr ioctl 2
|
.Xr ioctl 2
|
||||||
|
|
Loading…
Reference in New Issue