Messages in this thread | | | Subject | Re: mlock(1) | From | Valdis.Kletnieks@vt ... | Date | Fri, 24 Sep 2004 21:46:59 -0400 |
| |
On Sat, 25 Sep 2004 03:30:13 +0200, Andrea Arcangeli said: > On Fri, Sep 24, 2004 at 06:21:27PM -0700, David Lang wrote: > > if you don't do a -c mkswap runs fast enough that it shouldn't be a > > problem to do it every boot. > > yep, speed isn't my worry, my worry is a misconfigured /etc/fstab wiping > out a filesystem...
If the mkswap doesn't nuke the filesystem, the first time we actually send a page to swap will do the job. Plus, there's more chance of paging on a filesystem and managing to *not* notice, if we merely corrupt data by dropping an essentially random 4K page on top of 4K of file data and manage to not hit any metadata.
Maybe have mkswap check the partition table and not do it if the partition isn't id=82 (Linux swap) unless -f is specified? Not sure what to do if the space is a loop or LVM device though..... [unhandled content-type:application/pgp-signature] | |