Re: closefd: closes a file of any process

From: Tigran Aivazian (tigran@veritas.com)
Date: Sat Jun 24 2000 - 05:13:57 EST


On Fri, 23 Jun 2000, Jamie Lokier wrote:

> Tigran Aivazian wrote:
> > 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.
>
> Nice, because you still have the path from the dentry. So you might be
> able to forcibly unmount a filesystem (e.g. on a broken network file
> server) moving everything to nullfs. And then you might be able to
> mount a different fs in its place and use the paths from the dentries to
> convert the nullfs references back into real file references.

hmmm, interesting - I was originally thinking of releasing the old path as
"no longer useful" and allocating a new one that would point to nullfs
inode.

>
> Just a thought, I'm not sure if it has any application.
>

I will think about it. Thank you.

Regards,
Tigran

-
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 : Mon Jun 26 2000 - 21:00:04 EST