From owner-cvs-all@FreeBSD.ORG Sat Aug 16 00:10:07 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 106F937B401; Sat, 16 Aug 2003 00:10:07 -0700 (PDT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id CAAE943FBD; Sat, 16 Aug 2003 00:10:03 -0700 (PDT) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.9/8.12.9) with ESMTP id h7G7A1lX018382; Sat, 16 Aug 2003 09:10:02 +0200 (CEST) (envelope-from phk@phk.freebsd.dk) To: "Greg 'groggy' Lehey" From: "Poul-Henning Kamp" In-Reply-To: Your message of "Sat, 16 Aug 2003 10:39:42 +0930." <20030816010942.GC8274@wantadilla.lemis.com> Date: Sat, 16 Aug 2003 09:10:01 +0200 Message-ID: <18381.1061017801@critter.freebsd.dk> 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 07:10:07 -0000 In message <20030816010942.GC8274@wantadilla.lemis.com>, "Greg 'groggy' Lehey" writes: >> 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? The stuff removed made (yet) a magic mountpoint in the kernel and didn't have any beneficial properties the above three commands doesn't have too. Removing the swapfile is means that the file dies on the server and that nobody can write trash in it. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.