index_namespace
if (index_namespace(ns, datadir) != 0)
int index_namespace(struct namespace *ns, const char *datadir);