-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
Btw, cool patch. :-) I'll see if we can start testing this in an experimental
ebuild in Gentoo land.
On Wednesday 22 Sep 2004 10:52, Christian Schneider wrote:
> Sara Golemon wrote:
> >>realpath_cache_ttl - Time to live for cache entry (default 120 seconds;
> >> if set to 0 then doesn't refresh).
> >
> > Ah, didn't grok the TTL at first glance.... that fairly well negates the
> > need for an explicit flush.... If the FS layout needs to change all one
> > would have to do is turn down the TTL, make the change, and turn it back
> > up after the cache is sure to be cleared...
>
> Hmm.. if I understand correctly then one can only turn it down to 1
> second as 0 means unlimited. So if an application changes the tree it
> would have to sleep(1) for it to happen.
In real life, that would only mean a 'broken' path for 1 second. And changing
path's on a production system doesn't happen all that regularly, in my
experience.
On busy sites, a lot of users could get that broken file (not exist,
whatever), but if you don't code realpath() file i/o related correctly i.e.,
checking the file open'ed ok at least, (and in the stat()/is_*() case)
checking the file size, you're toast anyway. ;-)
> I'd strongly suggest that we have an explicit flush option. And no, I
> don't think restarting the server is an opton as this can't be done from
> inside an application.
Same here, if it counts. ;-) For those short-by-1-second cases, and during
development, t'would be handy.
Elfyn
- --
Elfyn McBratney
beu on irc.freenode.net/savannah.[non]gnu.org
PGP Key ID: 0x456548B4
PGP Key Fingerprint:
29D5 91BB 8748 7CC9 650F 31FE 6888 0C2A 4565 48B4
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFBUVuDaIgMKkVlSLQRAvhiAJ9IGQtNBi1T+XNIddkEbxWblgrfAACfXeGr
sbhCUYI5tascMi95g9Is+ug=
=z+yd
-----END PGP SIGNATURE-----