genode/repos/os/include/file_system_session
Norman Feske cc9368ccb4 os: add File_system_session::num_entries RPC
This patch splits the querying of the number of directory entries from
the directory's 'status' information. Subsuming the number of directory
entries as part of the status makes 'stat' calls too costly for some
file systems that need to read a directory for determining the number of
entries. So when stat'ing the entries of one directory that contains sub
directories, all entries of each sub directory are visited.

Thanks to Cedric Degea for pointing out this performance bottleneck!

With this change, the 'status' function returns a 'Status::size' value
of 0 when called for a directory handle.

Fixes #4603
2022-09-19 14:00:35 +02:00
..
capability.h Adjust file headers to refer to the AGPLv3 2017-02-28 12:59:29 +01:00
client.h os: add File_system_session::num_entries RPC 2022-09-19 14:00:35 +02:00
connection.h Consistent spelling of "writeable" 2022-02-15 10:23:58 +01:00
file_system_session.h os: add File_system_session::num_entries RPC 2022-09-19 14:00:35 +02:00
rpc_object.h New watch handle mechanism for File_system session 2018-02-14 20:41:09 +01:00