FUSE compat: fill in some stat infos for getattr

* Prefill struct stat with some information which the FUSE module
  doesn't necessarily fill in
This commit is contained in:
Julian Harnath 2017-02-11 10:40:32 +00:00
parent 1263be8fc4
commit 6297d6c73b

View File

@ -1260,6 +1260,11 @@ FUSEVolume::ReadStat(void* _node, struct stat* st)
locker.Unlock();
st->st_dev = GetID();
st->st_ino = node->id;
st->st_blksize = 2048;
st->st_type = 0;
// stat the path
int fuseError = fuse_fs_getattr(fFS, path, st);
if (fuseError != 0)