lkml.org 
[lkml]   [1997]   [Jan]   [30]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
From bofh@snoopy ...
DateFri, 31 Jan 97 11:58:32 +1000
SubjectRe: Does linux locks swap file?
>> So the file sticks around until the last time its closed, even though
>> no directory entry points to it. That's fine and dandy - that's the way
>> it should be, but if its true then how come somebody claimed that removing
>> the swap file crashed the system :-(

>I've no idea. I tried it myself, and the space the swapfile occupies stays in
>use, no crash, no problem (with one exception though, you can't swapoff).

  The only problem I saw reported in this regard is when you try to shut-down. 
If you have a swap file in use and it's been deleted then you can't swapoff as
you mention.  This means that the partition containing the file can't be
un-mounted and will be dirty on the next boot...

Russell Coker

\
 
 \ /
  Last update: 2005-03-22 12:38    [from the cache]
©2003-2008