On Fri, Aug 15, 2003 at 07:14:44AM +0800, John Summerfield wrote:

| On Thu, 14 Aug 2003, John Campbell wrote:
|
| > Uhhh....
| >
| > Isn't there a way to just dismount the volume?
| >
| > While that sounds simplistic, isn't there also a "disk change" flag that
| > can be used?  IIRC the floppy driver does this and any "removable" media
| > can trigger this recognition.  While an R/O disk isn't necessarily
| > "removable" it can be treated as such, right?
|
| You have to have all the files closed. If the filesystem contains /usr,
| you might as well reboot;-)

You have to kill all the processes, except init (which should be statically
linked and running from an executable in the / filesystem).  And if the
processes do not exit by themselves after SIGTERM, then do SIGKILL on them
all.  If that can't get rid of them, there are more serious problems, such
as stuck hardware (and I don't know if Linux still lets processes get stuck
so hard on NFS that even SIGKILL won't work).

<IMHO>
SIGKILL, or at least some newer SIGSUPERKILL signal, should be made to be
very strong, stopping processes from being dispatchable, forcibly closing
every descriptor, then finally doing the real kill to remoe them.  The
problem is there is still not enough separation between device drivers
and processes, making it not possible to force close descriptors since
some drivers may be hold some process resource themselves while waiting
for some event (interrupt) from the device that isn't really going to
every be coming (but in theory still might in a few hours).  There needs
to be a way to even kill device drivers (for most devices).
</IMHO>

--
-----------------------------------------------------------------------------
| Phil Howard KA9WGN       | http://linuxhomepage.com/      http://ham.org/ |
| (first name) at ipal.net | http://phil.ipal.org/   http://ka9wgn.ham.org/ |
-----------------------------------------------------------------------------

Reply via email to