mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-12-02 21:00:13 -05:00
restructure readdir, add readdir_plus
Does not enable READDIR_AUTO. Might add in the future.
This commit is contained in:
parent
10e8bd9fa3
commit
d119807adb
29 changed files with 1081 additions and 364 deletions
|
|
@ -38,13 +38,14 @@ public:
|
|||
|
||||
inline
|
||||
int
|
||||
put(const char *str_)
|
||||
put(const char *str_,
|
||||
const uint64_t len_)
|
||||
{
|
||||
int rv;
|
||||
uint64_t h;
|
||||
khint_t key;
|
||||
|
||||
h = fasthash64(str_,strlen(str_),0x7472617065786974);
|
||||
h = fasthash64(str_,len_,0x7472617065786974);
|
||||
|
||||
key = kh_put(hashset,_set,h,&rv);
|
||||
if(rv == 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue