cvs commit: src/sys/nfsclient bootp_subr.c nfs_diskless.c
nfs_vfsops.c nfsdiskless.h
Poul-Henning Kamp
phk at phk.freebsd.dk
Sat Aug 16 00:10:07 PDT 2003
In message <20030816010942.GC8274 at 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 at 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.
More information about the cvs-src
mailing list