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:
parent
1263be8fc4
commit
6297d6c73b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user