Re: Linux 2.0.0 fails to return Text File Busy for .so files

Bernd Eckenfels (ecki@tapac.inka.de)
21 Jun 1996 18:00:01 GMT


Systemkennung Linux (linux@informatik.uni-koblenz.de) wrote:
: No. You're right for the current kernel. The original poster wanted to
: forbid *any* modification to the shared lib as long as it is open by
: modifying the kernel. As I understand this his request this includes
: renameing, unlink(2) etc. And then you can no longer change the libs.

No, because unlink and rename are NO modifications to the file (represented
by the i-node) but modifications to the directory. The KErnel has the file
open (pointed to it by inode) and any modifications to the filename are
completely uninteresting to it. Thats why you can delete (unlink) a file and
it is still accessable until the last close (refcnt=0).

Greetings
Bernd

-- 
  (OO)      -- Bernd_Eckenfels@Wittumstrasse13.76646Bruchsal.de --
 ( .. )  ecki@lina.{inka.de,ka.sub.org}  http://home.pages.de/~eckes/
  o--o     *plush*  2048/93600EFD  eckes@irc  +4972573817  *plush*
(O____O)       If privacy is outlawed only Outlaws have privacy