lkml.org 
[lkml]   [2004]   [Sep]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: mlock(1)
From
Date
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]
\
 
 \ /
  Last update: 2005-03-22 14:06    [W:0.343 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site