mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-12-04 22:00:15 -05:00
Misc fixes, mostly for FreeBSD (#1536)
This commit is contained in:
parent
7a9c3b7eb2
commit
46f85c0f6d
27 changed files with 146 additions and 140 deletions
|
|
@ -57,20 +57,20 @@ _readdir(const Branches::Ptr &branches_,
|
|||
int namelen;
|
||||
fs::dirent64 *d = reinterpret_cast<fs::dirent64*>(&buf->mem[pos]);
|
||||
|
||||
pos += d->d_reclen;
|
||||
pos += d->reclen;
|
||||
|
||||
namelen = d->d_namelen();
|
||||
namelen = d->namelen();
|
||||
|
||||
rv = names.put(d->d_name,namelen);
|
||||
rv = names.put(d->name,namelen);
|
||||
if(rv == 0)
|
||||
continue;
|
||||
|
||||
rel_filepath.replace_filename(d->d_name);
|
||||
rel_filepath.replace_filename(d->name);
|
||||
|
||||
d->d_ino = fs::inode::calc(branch.path,
|
||||
rel_filepath,
|
||||
DTTOIF(d->d_type),
|
||||
d->d_ino);
|
||||
d->ino = fs::inode::calc(branch.path,
|
||||
rel_filepath,
|
||||
DTTOIF(d->type),
|
||||
d->ino);
|
||||
|
||||
fuse_dirents_add(dirents_,d,namelen);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue