From 6297d6c73b684f1f7f1d9cb1deb2a38495be177c Mon Sep 17 00:00:00 2001 From: Julian Harnath Date: Sat, 11 Feb 2017 10:40:32 +0000 Subject: [PATCH] FUSE compat: fill in some stat infos for getattr * Prefill struct stat with some information which the FUSE module doesn't necessarily fill in --- .../file_systems/userlandfs/server/fuse/FUSEVolume.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/add-ons/kernel/file_systems/userlandfs/server/fuse/FUSEVolume.cpp b/src/add-ons/kernel/file_systems/userlandfs/server/fuse/FUSEVolume.cpp index ea9cc42c69..b916346087 100644 --- a/src/add-ons/kernel/file_systems/userlandfs/server/fuse/FUSEVolume.cpp +++ b/src/add-ons/kernel/file_systems/userlandfs/server/fuse/FUSEVolume.cpp @@ -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)