tdbs in cache_dir or state_dir

Christof Schmitt cs at samba.org
Wed Aug 17 21:58:29 UTC 2016


commit 54529fd354275cfb4ece407f95ef34675b202ea3
Author: Stefan Metzmacher <metze at samba.org>
Date:   Thu Mar 28 11:00:27 2013 +0100

    s3:lib/gencache: place gencache.tdb into /var/cache/samba
    
    /var/lock/samba is located on tmpfs on newer systems,
    but we want to keep things like the server affinity cache
    across reboots.
    
    Signed-off-by: Stefan Metzmacher <metze at samba.org>
    Reviewed-by: Volker Lendecke <vl at samba.org>


Shouldn't gencache.tdb placed in the state directory? At least the
documentation suggests that this is meant for persistent data.

On the other hand, winbindd_cache.tdb is placed in state_path. Does that
database hold any data that needs to be kept persistent, or should it be
moved to cache_path?

At least my current understanding is that 'lock directory' and 'cache
directory' could be placed on a tmpfs, while  the important information
that needs to be kept across reboots is in the 'state directory'.

Christof



More information about the samba-technical mailing list