From owner-cvs-all@FreeBSD.ORG Fri Aug 15 18:09:52 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 11C8937B401; Fri, 15 Aug 2003 18:09:52 -0700 (PDT) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E07F43FAF; Fri, 15 Aug 2003 18:09:50 -0700 (PDT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id DDBA8526CE; Sat, 16 Aug 2003 10:39:42 +0930 (CST) Date: Sat, 16 Aug 2003 10:39:42 +0930 From: Greg 'groggy' Lehey To: Poul-Henning Kamp Message-ID: <20030816010942.GC8274@wantadilla.lemis.com> References: <200308151204.h7FC42rq050760@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="DSayHWYpDlRfCAAQ" Content-Disposition: inline In-Reply-To: <200308151204.h7FC42rq050760@repoman.freebsd.org> User-Agent: Mutt/1.4i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/nfsclient bootp_subr.c nfs_diskless.c nfs_vfsops.c nfsdiskless.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Aug 2003 01:09:52 -0000 --DSayHWYpDlRfCAAQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Friday, 15 August 2003 at 5:04:02 -0700, Poul-Henning Kamp wrote: > phk 2003/08/15 05:04:02 PDT > > FreeBSD src repository > > Modified files: > sys/nfsclient bootp_subr.c nfs_diskless.c nfs_vfsops.c > nfsdiskless.h > Log: > Remove the magic way of configuring NFS backed swap. > > This code dates back to the very first diskless support on FreeBSD, > back when swapon(8) couldn't simply be run on a NFS backed file. > > Suggested replacement command sequence on the client: > > dd if=/dev/zero of=/swapfile bs=1k count=1 oseek=100000 > swapon /swapfile > rm -f /swapfile > > For whatever value of 100000 you want. I'm confused. Why was this necessary? Which is the "magic" way? Is the rm -f /swapfile really necessary, or just a foot guard? Greg -- See complete headers for address and phone numbers --DSayHWYpDlRfCAAQ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQE/PYRVIubykFB6QiMRAhQ8AJ4tosPwc5i57rbuqoQpz5pESIMgAACfckNa 27lOfhDDnEKTADcKwQWNNSc= =nKSQ -----END PGP SIGNATURE----- --DSayHWYpDlRfCAAQ--