config: rework global config, remove rwlock, make branches RCU like

Also added unit tests. Should have done separately but found a number of bugs.
This commit is contained in:
Antonio SJ Musumeci 2020-12-19 15:06:08 -05:00
parent 2e4c6c5fd1
commit 538467b86d
327 changed files with 6691 additions and 3036 deletions

View file

@ -21,10 +21,10 @@
#include "fs_inode.hpp"
#include "wyhash.h"
#include <cstdint>
#include <string>
#include <pthread.h>
#include <stdint.h>
#include <string.h>
#include <sys/stat.h>
@ -184,10 +184,16 @@ namespace fs
return "passthrough";
if(g_func == path_hash)
return "path-hash";
if(g_func == path_hash32)
return "path-hash32";
if(g_func == devino_hash)
return "devino-hash";
if(g_func == devino_hash32)
return "devino-hash32";
if(g_func == hybrid_hash)
return "hybrid-hash";
if(g_func == hybrid_hash32)
return "hybrid-hash32";
return std::string();
}