tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: autoclean mode for tmpfs
On Tue, Aug 09, 2011 at 07:13:44PM +0200, Emmanuel Dreyfus wrote:
> > > Yes, a TTL attribute on an inode: once it expires, the filesystem tosses
> > > the file on next access attempt.
> >
> > If it were done at the next directory listing attempt, it would make
> > more sense (and the removed file should not be reported as present of
> > course). In the mean time, a program which may have created the file and
> > remembered its name, may still access it past the expiration date if it
> > is lucky (i.e., nobody looked - a quantum file system where observation
> > changes the files).
>
> Well, I meant on the next lookup, actually, but readdir should also kill
> it. This is probably too complicated.
Quite a bit more complicated than just arming a timeout for every
vnode or something like that, yes...
--
David A. Holland
dholland%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index