diff options
author | Mike Pechkin <mpech@cvs.openbsd.org> | 2001-12-13 20:16:49 +0000 |
---|---|---|
committer | Mike Pechkin <mpech@cvs.openbsd.org> | 2001-12-13 20:16:49 +0000 |
commit | a37e294bfb52a06afd6eb6645870cf1c540b877e (patch) | |
tree | 36ba9d9b5ffc6d45680f435ed5a7932be0645989 /sbin/disklabel | |
parent | 341511d89cf2709a82733b614acd805624150322 (diff) |
o) start new sentence on a new line;
o) wrap long lines;
o) fix bogus .Xr usage;
o) we don't like blank lines;
o) always close .Bl tags;
o) OpenBSD -> .Ox;
o) don't like .Pp before .Ss;
millert@ ok;
Diffstat (limited to 'sbin/disklabel')
-rw-r--r-- | sbin/disklabel/disklabel.5 | 22 | ||||
-rw-r--r-- | sbin/disklabel/disklabel.8 | 5 |
2 files changed, 15 insertions, 12 deletions
diff --git a/sbin/disklabel/disklabel.5 b/sbin/disklabel/disklabel.5 index 6848f06c1fc..8ef9a34da42 100644 --- a/sbin/disklabel/disklabel.5 +++ b/sbin/disklabel/disklabel.5 @@ -1,4 +1,4 @@ -.\" $OpenBSD: disklabel.5,v 1.11 2001/08/12 12:03:01 heko Exp $ +.\" $OpenBSD: disklabel.5,v 1.12 2001/12/13 20:16:48 mpech Exp $ .\" $NetBSD: disklabel.5,v 1.3 1995/03/18 14:54:36 cgd Exp $ .\" .\" Copyright (c) 1987, 1991, 1993 @@ -78,18 +78,18 @@ the .Dv DIOCWLABEL .Xr ioctl 2 , which is done as needed by the -.Xr disklabel +.Em disklabel program, allows modification of the label sector. .Pp A copy of the in-core label for a disk can be obtained with the .Dv DIOCGDINFO -.Xr ioctl ; +.Em ioctl ; this works with a file descriptor for a block or character .Pq Dq raw device for any partition of the disk. The in-core copy of the label is set by the .Dv DIOCSDINFO -.Xr ioctl . +.Em ioctl . The offset of a partition cannot generally be changed while it is open, nor can it be made smaller while it is open. One exception is that any change is allowed if no label was found @@ -97,27 +97,29 @@ on the disk, and the driver was able to construct only a skeletal label without partition information. The .Dv DIOCWDINFO -.Xr ioctl +.Em ioctl operation sets the in-core label and then updates the on-disk label; there must be an existing label on the disk for this operation to succeed. Thus, the initial label for a disk or disk pack must be installed by writing to the raw disk. The .Dv DIOCGPDINFO -.Xr ioctl -operation gets the default label for a disk. This simulates the case +.Em ioctl +operation gets the default label for a disk. +This simulates the case where there is no physical label on the disk itself and can be used to see the label the kernel would construct in that case. The .Dv DIOCRLDINFO -.Xr ioctl +.Em ioctl operation causes the kernel to update its copy of label based on the -physical label on the disk. It can be used when the on-disk version +physical label on the disk. +It can be used when the on-disk version of the label was changed directly or, if there is no physical label, to update the kernel's skeletal label if some variable affecting label generation has changed (e.g. the fdisk partition table). All of these operations are normally done using -.Xr disklabel . +.Em disklabel . .Pp The format of the disk label, as specified in .Pa sys/disklabel.h , diff --git a/sbin/disklabel/disklabel.8 b/sbin/disklabel/disklabel.8 index 8a020294a05..60c2b52466e 100644 --- a/sbin/disklabel/disklabel.8 +++ b/sbin/disklabel/disklabel.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: disklabel.8,v 1.42 2001/08/17 11:13:57 mpech Exp $ +.\" $OpenBSD: disklabel.8,v 1.43 2001/12/13 20:16:48 mpech Exp $ .\" $NetBSD: disklabel.8,v 1.9 1995/03/18 14:54:38 cgd Exp $ .\" .\" Copyright (c) 1987, 1988, 1991, 1993 @@ -421,7 +421,8 @@ block and fragment size on ffs partitions). .It z Zeroes out the existing partition table, leaving only the .Dq c -partition. The drive parameters are not changed. +partition. +The drive parameters are not changed. .El .Pp In the restore form of the command, the prototype file used to create |