Re: closefd: closes a file of any process

Werner Almesberger (almesber@lrc.epfl.ch)
Wed, 28 Jun 2000 18:35:14 +0200 (MET DST)


Tigran Aivazian wrote:
> I don't actually propose to "just break their file descriptors". If I have
> a process that is actively doing io on a file I want to atomically switch
> to a different (dentry, inode) pair whilst releasing the old ones.

Hmm, a generalized transfer mechanism could be useful for programs
writing huge log files or such, if you catch them in time to let them
continue on a file system with more space (assuming they never ever
seek). Likewise, you could "move" applications from terminal to terminal
without using screen(1). Interesting, but probably quite non-trivial in
the general sense.

Your original proposal, moving to nullfs, gives you simply the possibility
to have a "hard" or a "soft" failure. The basic assumption is still that
the program didn't really need to access the file in the first place.

So I'm still wondering if a clean exit/kill wouldn't be better in almost
all cases.

- Werner

-- 
  _________________________________________________________________________
 / Werner Almesberger, ICA, EPFL, CH       werner.almesberger@ica.epfl.ch /
/_IN_N_032__Tel_+41_21_693_6621__Fax_+41_21_693_6610_____________________/

- 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/