From owner-freebsd-doc Tue Apr 24 18: 9:56 2001 Delivered-To: freebsd-doc@freebsd.org Received: from bazooka.unixfreak.org (bazooka.unixfreak.org [63.198.170.138]) by hub.freebsd.org (Postfix) with ESMTP id DC49B37B422; Tue, 24 Apr 2001 18:09:53 -0700 (PDT) (envelope-from dima@unixfreak.org) Received: from spike.unixfreak.org (spike [63.198.170.139]) by bazooka.unixfreak.org (Postfix) with ESMTP id 8186A3E2A; Tue, 24 Apr 2001 18:09:35 -0700 (PDT) To: Jordan Hubbard Cc: freebsd-doc@freebsd.org, nik@freebsd.org Subject: Re: docs/26579: FAQ inconsistency regarding allocating swap with vnconfig In-Reply-To: <200104181650.f3IGo2B07012@freefall.freebsd.org>; from jkh@osd.bsdi.com on "Wed, 18 Apr 2001 09:50:02 -0700 (PDT)" Date: Tue, 24 Apr 2001 18:09:35 -0700 From: Dima Dorfman Message-Id: <20010425010936.8186A3E2A@bazooka.unixfreak.org> Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Jordan Hubbard writes: > > [ /etc/rc uses `vnconfig ... && swapon` instead of `vnconfig swap` ] > 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. Is anybody actually going to fix this now that RELENG_4 is unfrozen? Here's the obvious patch. Index: rc =================================================================== RCS file: /st/src/FreeBSD/src/etc/rc,v retrieving revision 1.212.2.21 diff -u -r1.212.2.21 rc --- rc 2001/03/07 20:13:56 1.212.2.21 +++ rc 2001/04/25 01:06:14 @@ -255,7 +255,7 @@ *) if [ -w "${swapfile}" -a -c /dev/vn0b ]; then echo "Adding ${swapfile} as additional swap" - vnconfig /dev/vn0b ${swapfile} && swapon /dev/vn0b + vnconfig -ce /dev/vn0b ${swapfile} swap fi ;; esac To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message