Date: Sat, 16 Aug 2003 18:12:36 +1000 From: Peter Jeremy <PeterJeremy@optushome.com.au> To: Poul-Henning Kamp <phk@phk.freebsd.dk> Cc: cvs-all@freebsd.org Subject: Re: cvs commit: src/sys/nfsclient bootp_subr.c nfs_diskless.c nfs_vfsops.c nfsdiskless.h Message-ID: <20030816081235.GC74853@cirb503493.alcatel.com.au> In-Reply-To: <18381.1061017801@critter.freebsd.dk> References: <20030816010942.GC8274@wantadilla.lemis.com> <18381.1061017801@critter.freebsd.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030816081235.GC74853>