From owner-freebsd-doc@FreeBSD.ORG Wed May 7 01:58:50 2003 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E5F4537B401; Wed, 7 May 2003 01:58:50 -0700 (PDT) Received: from arthur.nitro.dk (port324.ds1-khk.adsl.cybercity.dk [212.242.113.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id 10DDA43F75; Wed, 7 May 2003 01:58:50 -0700 (PDT) (envelope-from simon@arthur.nitro.dk) Received: by arthur.nitro.dk (Postfix, from userid 1000) id 76E6810BF81; Wed, 7 May 2003 10:58:48 +0200 (CEST) Date: Wed, 7 May 2003 10:58:48 +0200 From: "Simon L. Nielsen" To: Marc Fonvieille Message-ID: <20030507085847.GA394@nitro.dk> References: <200305070010.h470A6gY099125@freefall.freebsd.org> <20030507093401.A97412@abigail.blackend.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4Ckj6UjgE2iN1+kY" Content-Disposition: inline In-Reply-To: <20030507093401.A97412@abigail.blackend.org> User-Agent: Mutt/1.5.4i cc: freebsd-doc@FreeBSD.org Subject: Re: docs/51897: Add example for disklable for md devices X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 May 2003 08:58:51 -0000 --4Ckj6UjgE2iN1+kY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2003.05.07 09:34:01 +0200, Marc Fonvieille wrote: > On Tue, May 06, 2003 at 05:10:06PM -0700, Simon L. Nielsen wrote: > [...] > > =20 > > %%% > > Index: mdconfig.8 > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > RCS file: /home/ncvs/src/sbin/mdconfig/mdconfig.8,v > > retrieving revision 1.19 > > diff -u -d -r1.19 mdconfig.8 > > --- mdconfig.8 27 Apr 2003 01:46:56 -0000 1.19 > > +++ mdconfig.8 6 May 2003 23:54:40 -0000 > > @@ -164,6 +164,18 @@ > > mount /dev/md10 /tmp > > chmod 1777 /tmp > > .Ed > > +.Pp > > +To create a 10MB memory disk named > > +.Pa /dev/md0 > > +with the file > > +.Pa somebackingfile > > +as backing and label it with normal partitions: > > +.Bd -literal -offset indent > > +dd if=3D/dev/zero of=3Dsomebackingfile bs=3D1k count=3D10k > > +mdconfig -a -t vnode -f somebackingfile -u 0 > > +disklabel -w md0 >=20 > We shoould be consistent with other docs (Handbook etc..) i.e. > disklabel -r -w md0 auto Actually it was on purpose that I changed that. As I understand it '-r' and 'auto' are not needed anymore post GEOM. The examples in bsdlabel(8) does not use auto and this is the code handling '-r' : case 'r': /* * We accept and ignode -r for compatibility with * historically disklabel usage. */ break; I would rather say that the rest of the docs should be change not to use '-r' and 'auto' and perhaps add a compatibility note for FreeBSD < 5.0. I do agree in general consitency is a very good thing, but in this case I don't see a reason to keep the old (more complex) format around when it really is not needed. --=20 Simon L. Nielsen --4Ckj6UjgE2iN1+kY Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+uMrH8kocFXgPTRwRAj5YAJ4iGQX3h+lXNZRysYArroa7LRdvhgCg01F+ B3H1EKtF/XW+q2Xs71K3LwM= =m8Jc -----END PGP SIGNATURE----- --4Ckj6UjgE2iN1+kY--