lkml.org 
[lkml]   [1997]   [Jan]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Does linux locks swap file?
On 30 Jan 1997, H. Peter Anvin wrote:

> That's definitely a bug. IMNSHO a swapon() should be treated the same
> way as an open() from this standpoint.

It's not a bug, swapon() does increment the inode usage counter of the
swapfile.

> It may also be a good idea
> (although I don't know about this one, really) to record a lock on all
> bytes in the file.

It might be. Although, if it's just an advisory lock... it's kind of
useless.


Ionut

--
It is better to keep your mouth shut and be thought a fool,
than to open it and remove all doubt.


\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.063 / U:0.656 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site