tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: autoclean mode for tmpfs



Marc Balmer <mbalmer%NetBSD.org@localhost> wrote:

> > Yes, a TTL attribute on an inode: once it expires, the filesystem tosses
> > the file on next access attempt.
> you shoudn't toss away a file when something attempts to access it.  you
> should toss it away when nothing attempt to access it for long enough.

The idea was to avoid a daemon that periodically inspets file timeout.
You just have to check for expiration on access. If expired, remove the
file and ansswer ENOENT.

-- 
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
manu%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index