[lkml]   [1997]   [Jan]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Does linux locks swap file?
On Wed, 22 Jan 1997, Fabio Olive Leite wrote:

> Couldn't /proc/swaps help in taking care of this? In the most horrible
> case, swapoff could just recreate the file pointing to the same inode, or
> do some other hack based on /proc/swaps' information...

/proc/swaps could display the [device:inode] pair, no problem, but from
here to creating a new file using that pair, especially that the pair IS
STILL IN USE, is a long, hard, unportable and simply dain bramaged way to

P.S. You could try to undelete the file, but even that is

P.P.S. There are hundreds of ways of crashing a machine as (stupid) root,
so this "problem" is just a minor nuisance. Especially that it doesn'c
actually crash it. :)


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.031 / U:0.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site