diff options
-rw-r--r-- | lib/param/loadparm.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/param/loadparm.c b/lib/param/loadparm.c index 51053baa47d..9ad14d8ae4f 100644 --- a/lib/param/loadparm.c +++ b/lib/param/loadparm.c @@ -2778,3 +2778,21 @@ bool lpcfg_server_signing_allowed(struct loadparm_context *lp_ctx, bool *mandato return allowed; } + +int lpcfg_tdb_hash_size(struct loadparm_context *lp_ctx, const char *name) +{ + const char *base; + + if (name == NULL) { + return 0; + } + + base = strrchr_m(name, '/'); + if (base != NULL) { + base += 1; + } else { + base = name; + } + return lpcfg_parm_int(lp_ctx, NULL, "tdb_hashsize", base, 0); + +} |