*: Do not use the no-op -r flag for bsdlabel(8)

The -r flag is ignored by the FreeBSD implementation of bsdlabel(8)
(also called disklabel(8) in the past). Remove its use from examples
and tests in the tree.

This commit does not touch historical documentation under share/doc/smm
and files under contrib/netbsd-tests.

Reviewed by:	imp
MFC after:	2 weeks
Approved by:	imp (src)
Fixes:		57dfbec57b More axe-work:
Differential Revision:	https://reviews.freebsd.org/D34585
This commit is contained in:
Mateusz Piotrowski 2022-03-17 11:21:06 +01:00
parent f37dc50d9f
commit fd06117525
5 changed files with 8 additions and 8 deletions

View File

@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
.Dd September 8, 2016
.Dd March 17, 2022
.Dt GMULTIPATH 8
.Os
.Sh NAME
@ -338,7 +338,7 @@ GEOM provider named
.Ar FRED .
.Bd -literal -offset indent
gmultipath label -v FRED /dev/da0 /dev/da2
disklabel -Brw /dev/multipath/FRED auto
disklabel -Bw /dev/multipath/FRED auto
newfs /dev/multipath/FREDa
mount /dev/multipath/FREDa /mnt....
.Ed

View File

@ -9,7 +9,7 @@
#
# To make a filesystem on a floppy:
# fdformat [-f <size>] fd<drive>[.<size>]
# disklabel -B -r -w fd<drive>[.<size>] fd<size>
# disklabel -B -w fd<drive>[.<size>] fd<size>
# newfs <opts> fd<drive>[.<size>]
#
# with <opts>:

View File

@ -28,7 +28,7 @@
.\" $NetBSD: ccdconfig.8,v 1.4 1996/02/28 01:01:17 thorpej Exp $
.\" $FreeBSD$
.\"
.Dd October 3, 2016
.Dd March 17, 2022
.Dt CCDCONFIG 8
.Os
.Sh NAME
@ -204,7 +204,7 @@ you have A ccd disk with 10000 sectors you might create a 'd' partition
with offset 16 and size 9984.
.Bd -literal
# disklabel ccd0 > /tmp/disklabel.ccd0
# disklabel -Rr ccd0 /tmp/disklabel.ccd0
# disklabel -R ccd0 /tmp/disklabel.ccd0
# disklabel -e ccd0
.Ed
.Pp

View File

@ -10,7 +10,7 @@ do
(
mdconfig -d -u $MD || true
mdconfig -a -t malloc -s $s -u $MD
disklabel -r -w md$MD auto
disklabel -w md$MD auto
./newfs -R /dev/md${MD}c
) 1>&2
md5 < /dev/md${MD}c

View File

@ -10,8 +10,8 @@ mdconfig -d -u $MD || true
mdconfig -d -u $ME || true
mdconfig -a -t malloc -s $s -u $MD
mdconfig -a -t malloc -s $s -u $ME
disklabel -r -w md$MD auto
disklabel -r -w md$ME auto
disklabel -w md$MD auto
disklabel -w md$ME auto
./newfs -R /dev/md${MD}c
./newfs -R /dev/md${ME}c
if cmp /dev/md${MD}c /dev/md${ME}c ; then