]> git.sur5r.net Git - bacula/bacula/commit
Enhance mountcache with rescan option after interval.
authorMarco van Wieringen <mvw@planets.elm.net>
Fri, 11 Nov 2011 09:15:02 +0000 (10:15 +0100)
committerMarco van Wieringen <mvw@planets.elm.net>
Sat, 12 Nov 2011 09:09:01 +0000 (10:09 +0100)
commitaa585a5debd7ffdab56ad83b2ae8f1eeba651633
tree99bf99490d9264fe612ac0481ae5848ddc267422
parent1274f2a3df7dc297a5db4012ebb2324f6f98d6c8
Enhance mountcache with rescan option after interval.

The mountcache shouldn't be a static cache that lives forever
in the filed. Mountpoint come and go on modern systems so
on a failure to lookup a mountpoint in the cache we trigger
a rescan. We also rescan the cache on lookup when more
the 30 minutes have past since the last rescan of the data.
This way we should have less stale data. Having old data
is not so much a problem but missing new data is this new
rules should make this cache somewhat robust.
bacula/src/lib/mntent_cache.c
bacula/src/lib/mntent_cache.h