mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-12-02 21:00:13 -05:00
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:
parent
2e4c6c5fd1
commit
538467b86d
327 changed files with 6691 additions and 3036 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue