From grady@adsl-209-233-28-31.dsl.snfc21.pacbell.net  Sat Apr 14 11:39:57 2001
Return-Path: <grady@adsl-209-233-28-31.dsl.snfc21.pacbell.net>
Received: from adsl-209-233-28-31.dsl.snfc21.pacbell.net (adsl-209-233-28-31.dsl.snfc21.pacbell.net [209.233.28.31])
	by hub.freebsd.org (Postfix) with ESMTP id DD9BB37B50C
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 14 Apr 2001 11:39:56 -0700 (PDT)
	(envelope-from grady@adsl-209-233-28-31.dsl.snfc21.pacbell.net)
Received: (from grady@localhost)
	by adsl-209-233-28-31.dsl.snfc21.pacbell.net (8.9.3/8.9.3) id LAA40770;
	Sat, 14 Apr 2001 11:39:58 -0700 (PDT)
	(envelope-from grady)
Message-Id: <200104141839.LAA40770@adsl-209-233-28-31.dsl.snfc21.pacbell.net>
Date: Sat, 14 Apr 2001 11:39:58 -0700 (PDT)
From: Steven Grady <grady@adsl-209-233-28-31.dsl.snfc21.pacbell.net>
Reply-To: grady@xcf.berkeley.edu
To: FreeBSD-gnats-submit@freebsd.org
Subject: FAQ inconsistency regarding allocating swap with vnconfig
X-Send-Pr-Version: 3.2

>Number:         26579
>Category:       docs
>Synopsis:       FAQ inconsistency regarding allocating swap with vnconfig
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 14 11:40:01 PDT 2001
>Closed-Date:    Wed Apr 25 02:30:42 PDT 2001
>Last-Modified:  Wed Apr 25 02:31:04 PDT 2001
>Originator:     Steven Grady
>Release:        FreeBSD 4.1-RELEASE i386
>Organization:
>Environment:

	4.1-RELEASE

>Description:

	According to the FAQ, to swap immediately, you invoke:
	    vnconfig -ce /dev/vn0c /usr/swap0 swap
	But /etc/rc does the following:
	    vnconfig /dev/vn0b $swapfile && swapon /dev/vn0b

    	I'm not sure whether it matters whether you swap on vn0b or
	vn0c, but it would cause less confusion if the two were
	consistent.

	(I checked with jkh, who said:
	    Not sure it always matters, but "vn0b" is certainly
	    more "correct."
	)

>How-To-Repeat:


>Fix:

>Release-Note:
>Audit-Trail:

From: Nik Clayton <nik@freebsd.org>
To: grady@xcf.berkeley.edu
Cc: FreeBSD-gnats-submit@freebsd.org, jkh@freebsd.org
Subject: Re: docs/26579: FAQ inconsistency regarding allocating swap with vnconfig
Date: Wed, 18 Apr 2001 11:06:56 +0100

 --jy6Sn24JjFx/iggw
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 Jordan,
 
 On Sat, Apr 14, 2001 at 11:39:58AM -0700, Steven Grady wrote:
 > >Synopsis:       FAQ inconsistency regarding allocating swap with vnconfig
 >=20
 > >Description:
 >=20
 > 	According to the FAQ, to swap immediately, you invoke:
 > 	    vnconfig -ce /dev/vn0c /usr/swap0 swap
 > 	But /etc/rc does the following:
 > 	    vnconfig /dev/vn0b $swapfile && swapon /dev/vn0b
 >=20
 >     	I'm not sure whether it matters whether you swap on vn0b or
 > 	vn0c, but it would cause less confusion if the two were
 > 	consistent.
 >=20
 > 	(I checked with jkh, who said:
 > 	    Not sure it always matters, but "vn0b" is certainly
 > 	    more "correct."
 > 	)
 
 You added the code to /etc/rc to do this, rev 1.96.  Do you recall why
 you did "vnconfig ... && swapon ..." instead of using the "swap" option
 to vnconfig?
 
 I think it's probably better to bring /etc/rc in to line with the
 documentation, rather than the other way around (but continuing to use
 vn0b instead of vn0c.  This would make the line
 
     vnconfig -ce /dev/vn0b $swapfile swap
 
 in /etc/rc.
 
 Thoughts?  This is something that can be postponed until after 4.3.
 
 N
 --=20
 FreeBSD: The Power to Serve             http://www.freebsd.org/
 FreeBSD Documentation Project           http://www.freebsd.org/docproj/
 
           --- 15B8 3FFC DDB4 34B0 AA5F  94B7 93A8 0764 2C37 E375 ---
 
 --jy6Sn24JjFx/iggw
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.0.4 (FreeBSD)
 Comment: For info see http://www.gnupg.org
 
 iEYEARECAAYFAjrdZz8ACgkQk6gHZCw343XM9gCbBhRQCyDmYqLEm9vZu2fUOWcT
 9nQAnRXj+p/CtcVv21goxEwRnqh7hmJu
 =hZap
 -----END PGP SIGNATURE-----
 
 --jy6Sn24JjFx/iggw--

From: Jordan Hubbard <jkh@osd.bsdi.com>
To: nik@freebsd.org
Cc: grady@xcf.berkeley.edu, FreeBSD-gnats-submit@freebsd.org,
	jkh@freebsd.org
Subject: Re: docs/26579: FAQ inconsistency regarding allocating swap with
 vnconfig
Date: Wed, 18 Apr 2001 09:42:11 -0700

 Hmmmm (a brief pause as he goes off to read the source to vnconfig).
 
 Well blow me, erm, down!  I didn't know vnconfig would do the swapon()
 itself if you used the swap argument.  I agree that this should be
 changed as you say.
 
 - Jordan
State-Changed-From-To: open->closed 
State-Changed-By: nik 
State-Changed-When: Wed Apr 25 02:30:42 PDT 2001 
State-Changed-Why:  
Fixed properly in the FAQ, and in RELENG_4's /etc/rc code.  Thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=26579 
>Unformatted:
