Re: closefd: closes a file of any process

From: Martin Mares (mj@suse.cz)
Date: Fri Jun 23 2000 - 12:23:38 EST


Hello!

> Then the first thing that occur to you is to forcibly close an fd. You
> write some code and investigate until you discover that it *IS*
> impossible. Then you come up with an idea of implementing a special
> filesystem 'nullfs' where you shift the open file to, instead of closing
> it. Any subsequent io on this fd gives EIO.

I didn't look at the actual code yet, but isn't it possible to just
replace all inodes by invalid inodes (via make_bad_inode()) instead
of forcibly closing all the related FD's?

                                Have a nice fortnight

-- 
Martin `MJ' Mares <mj@ucw.cz> <mj@suse.cz> http://atrey.karlin.mff.cuni.cz/~mj/
"If you are feeling good, don't worry. You'll get over it."

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:26 EST