]> git.sur5r.net Git - bacula/bacula/commit
Change locking scheme of the mountpoint cache.
authorMarco van Wieringen <mvw@planets.elm.net>
Sat, 12 Nov 2011 08:59:54 +0000 (09:59 +0100)
committerMarco van Wieringen <mvw@planets.elm.net>
Sat, 12 Nov 2011 09:09:23 +0000 (10:09 +0100)
commitfec70f15f2f3961b7fd71d74898c6fd0ee956257
tree63c8c18f491516a7c8ac8325dbab65538e3fa301
parent4992ad736a9d7dafd06a0ada1060bf2dd4ee3fbf
Change locking scheme of the mountpoint cache.

We now lock the mount cache from the moment a caller enters
find_mntent_mapping. This way we know for sure no one can
be tampering our structures until we finish. As flush_mntent_cache
is not called from the outside and now is a function which needs
the lock hold we remove it as an external interface.
bacula/src/lib/mntent_cache.c
bacula/src/lib/mntent_cache.h