Re: swapoff weird

2000-12-15 Thread Pavel Machek
Hi! > >[David Feuer] > > > Perhaps it would be good to put a check in unlink to make sure that > > > this is not the last link to a swapfile. > > > >Much better to add code to /sbin/swapon and /sbin/swapoff to set and > >clear immutable bit. Sure it only works on ext2 but how far do you > >want

Re: swapoff weird

2000-12-10 Thread David Feuer
At 01:56 AM 12/10/2000 -0600, Peter Samuelson wrote: >[David Feuer] > > Perhaps it would be good to put a check in unlink to make sure that > > this is not the last link to a swapfile. > >Much better to add code to /sbin/swapon and /sbin/swapoff to set and >clear immutable bit. Sure it only work

Re: swapoff weird

2000-12-09 Thread Peter Samuelson
[David Feuer] > Perhaps it would be good to put a check in unlink to make sure that > this is not the last link to a swapfile. Much better to add code to /sbin/swapon and /sbin/swapoff to set and clear immutable bit. Sure it only works on ext2 but how far do you want to take this thing? Peter

Re: swapoff weird

2000-12-09 Thread David Feuer
At 10:24 PM 12/9/2000 +0100, you wrote:d >It is possible to remove swapfile in use. Great, but how do you swap >off then? Who is to blame? Perhaps it would be good to put a check in unlink to make sure that this is not the last link to a swapfile. Are there any other sorts of files that don't

Re: swapoff weird

2000-12-09 Thread David Ford
> I can't swapoff. Therefore filesystem is busy (it must be -- kernel > might be writing to file on it!). And no way to get out of that. It's busy because some portion of memory is in use. manually kill things as best you can. this will clean out the swap. once you've gotten all applications

Re: swapoff weird

2000-12-09 Thread Pavel Machek
> On Sat, 9 Dec 2000, Pavel Machek wrote: > > > It is possible to remove swapfile in use. Great, but how do you > > swap off then? Who is to blame? > > As usual, root is to blame ;) I do not agree. It is too easy to get to situation like this. > > root@bug:~# swapoff /tmp/swap > > swapoff: /tm

Re: swapoff weird

2000-12-09 Thread Rik van Riel
On Sat, 9 Dec 2000, Pavel Machek wrote: > It is possible to remove swapfile in use. Great, but how do you > swap off then? Who is to blame? As usual, root is to blame ;) > root@bug:~# swapoff /tmp/swap > swapoff: /tmp/swap: No such file or directory > root@bug:~# > /tmp/swap > root@bug:~# swapo

swapoff weird

2000-12-09 Thread Pavel Machek
Hi! It is possible to remove swapfile in use. Great, but how do you swap off then? Who is to blame? root@bug:~# swapoff /tmp/swap swapoff: /tmp/swap: No such file or directory root@bug:~# > /tmp/swap root@bug:~# swapoff /tmp/swap swapoff: /tmp/swap: Invalid argument root@bug:~# How do I get out