Messages in this thread |  | | Date | Wed, 22 Jan 1997 01:40:11 -0500 (EST) | From | Ion Badulescu <> | Subject | Re: 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 go.
P.S. You could try to undelete the file, but even that is filesystem-specific.
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. :)
Ionut
-- It is better to keep your mouth shut and be thought a fool, than to open it and remove all doubt.
|  |