lkml.org 
[lkml]   [1997]   [Jan]   [30]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateThu, 30 Jan 1997 00:30:33 -0500 (EST)
FromIon Badulescu <>
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 12:38    [from the cache]
©2003-2008