mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-24 17:06:24 -05:00
fix filename hashing error
This commit is contained in:
parent
ada90eab57
commit
3a46ec9fab
5 changed files with 13 additions and 40 deletions
|
|
@ -100,7 +100,6 @@ namespace l
|
|||
{
|
||||
int dirfd;
|
||||
int64_t nread;
|
||||
uint64_t namelen;
|
||||
|
||||
basepath = fs::path::make(&branches_[i].path,dirname_);
|
||||
|
||||
|
|
@ -120,12 +119,11 @@ namespace l
|
|||
if(nread == 0)
|
||||
break;
|
||||
|
||||
for(int64_t pos = 0; pos < nread;)
|
||||
for(int64_t pos = 0; pos < nread; pos += d->d_reclen)
|
||||
{
|
||||
d = (struct linux_dirent64*)(buf + pos);
|
||||
namelen = (d->d_reclen - offsetof(struct linux_dirent64,d_name));
|
||||
|
||||
rv = names.put(d->d_name,namelen);
|
||||
rv = names.put(d->d_name);
|
||||
if(rv == 0)
|
||||
continue;
|
||||
|
||||
|
|
@ -139,8 +137,6 @@ namespace l
|
|||
rv = fuse_dirents_add_linux_plus(buf_,d,&entry,&st);
|
||||
if(rv)
|
||||
return close_free_ret_enomem(dirfd,buf);
|
||||
|
||||
pos += d->d_reclen;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue