From owner-cvs-all@FreeBSD.ORG Sat Aug 16 01:12:43 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 7CE9937B401; Sat, 16 Aug 2003 01:12:43 -0700 (PDT) Received: from cirb503493.alcatel.com.au (c211-28-27-130.belrs2.nsw.optusnet.com.au [211.28.27.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1BFE543FBD; Sat, 16 Aug 2003 01:12:42 -0700 (PDT) (envelope-from PeterJeremy@optushome.com.au) Received: from cirb503493.alcatel.com.au (localhost.alcatel.com.au [127.0.0.1])h7G8Cegh076684; Sat, 16 Aug 2003 18:12:40 +1000 (EST) (envelope-from jeremyp@cirb503493.alcatel.com.au) Received: (from jeremyp@localhost) by cirb503493.alcatel.com.au (8.12.8/8.12.8/Submit) id h7G8Cauv076683; Sat, 16 Aug 2003 18:12:36 +1000 (EST) Date: Sat, 16 Aug 2003 18:12:36 +1000 From: Peter Jeremy To: Poul-Henning Kamp Message-ID: <20030816081235.GC74853@cirb503493.alcatel.com.au> References: <20030816010942.GC8274@wantadilla.lemis.com> <18381.1061017801@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <18381.1061017801@critter.freebsd.dk> User-Agent: Mutt/1.4.1i cc: Greg 'groggy' Lehey 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 08:12:44 -0000 On Sat, Aug 16, 2003 at 09:10:01AM +0200, Poul-Henning Kamp wrote: >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? ... >Removing the swapfile is means that the file dies on the server and >that nobody can write trash in it. Not if / is NFS mounted: Removing the file on the client just renames it to a .nfsXXXXXXXX name. It retains the original permissions and is still on both the client and server under this dummy name. Peter