genode/repos/os/src/server
Christian Prochaska b0935ef9b2 VFS: nonblocking interface
The VFS library can be used in single-threaded or multi-threaded
environments and depending on that, signals are handled by the same thread
which uses the VFS library or possibly by a different thread. If a VFS
plugin needs to block to wait for a signal, there is currently no way
which works reliably in both environments.

For this reason, this commit makes the interface of the VFS library
nonblocking, similar to the File_system session interface.

The most important changes are:

- Directories are created and opened with the 'opendir()' function and the
  directory entries are read with the recently introduced 'queue_read()'
  and 'complete_read()' functions.

- Symbolic links are created and opened with the 'openlink()' function and
  the link target is read with the 'queue_read()' and 'complete_read()'
  functions and written with the 'write()' function.

- The 'write()' function does not wait for signals anymore. This can have
  the effect that data written by a VFS library user has not been
  processed by a file system server yet when the library user asks for the
  size of the file or closes it (both done with RPC functions at the file
  system server). For this reason, a user of the VFS library should
  request synchronization before calling 'stat()' or 'close()'. To make
  sure that a file system server has processed all write request packets
  which a client submitted before the synchronization request,
  synchronization is now requested at the file system server with a
  synchronization packet instead of an RPC function. Because of this
  change, the synchronization interface of the VFS library is now split
  into 'queue_sync()' and 'complete_sync()' functions.

Fixes #2399
2017-08-28 16:49:38 +02:00
..
blk_cache base: classify signals as I/O and application level 2017-05-31 13:15:58 +02:00
clipboard Adjust file headers to refer to the AGPLv3 2017-02-28 12:59:29 +01:00
dynamic_rom Streamline exception types 2017-05-31 13:16:07 +02:00
fs_log VFS: nonblocking interface 2017-08-28 16:49:38 +02:00
fs_report VFS: nonblocking interface 2017-08-28 16:49:38 +02:00
fs_rom fs_rom: trigger deferred ROM-update signal 2017-08-17 10:59:43 +02:00
input_filter input_filter character mapping rules for the Workman layout 2017-08-17 11:04:23 +02:00
input_merger Streamline exception types 2017-05-31 13:16:07 +02:00
iso9660 Streamline exception types 2017-05-31 13:16:07 +02:00
loader Integrate core's RAM service into the PD service 2017-05-31 13:16:14 +02:00
log_report Adjust file headers to refer to the AGPLv3 2017-02-28 12:59:29 +01:00
log_terminal Adjust file headers to refer to the AGPLv3 2017-02-28 12:59:29 +01:00
lx_fs VFS: nonblocking interface 2017-08-28 16:49:38 +02:00
mixer Streamline exception types 2017-05-31 13:16:07 +02:00
nic_bridge Integrate core's RAM service into the PD service 2017-05-31 13:16:14 +02:00
nic_dump os: removal of deprecated os/config.h (fix #2431) 2017-05-31 13:16:22 +02:00
nic_loopback Replace Quota_exceeded by Insufficient_ram_quota 2017-05-31 13:16:05 +02:00
nic_router nic_router: error if uplink domain not configured 2017-08-28 16:49:36 +02:00
nit_fb Adjust file headers to refer to the AGPLv3 2017-02-28 12:59:29 +01:00
nitpicker Streamline exception types 2017-05-31 13:16:07 +02:00
part_blk os: removal of deprecated os/config.h (fix #2431) 2017-05-31 13:16:22 +02:00
ram_blk Streamline exception types 2017-05-31 13:16:07 +02:00
ram_fs VFS: nonblocking interface 2017-08-28 16:49:38 +02:00
report_rom Streamline exception types 2017-05-31 13:16:07 +02:00
rom_blk Streamline exception types 2017-05-31 13:16:07 +02:00
rom_filter rom_filter: fix compilation with GCC 6 2017-05-31 13:15:52 +02:00
rom_prefetcher Adjust file headers to refer to the AGPLv3 2017-02-28 12:59:29 +01:00
tar_rom tar_rom: minor documentation fix 2017-08-28 16:49:37 +02:00
terminal_crosslink terminal_crosslink: prevent deprecated warning 2017-03-15 12:24:43 +01:00
terminal_log terminal_log: carriage-return on newline 2017-08-17 11:04:20 +02:00
trace_fs VFS: nonblocking interface 2017-08-28 16:49:38 +02:00
tz_vmm base: remove include/spec/* other than ISA 2017-05-31 13:16:01 +02:00
vfs VFS: nonblocking interface 2017-08-28 16:49:38 +02:00
vmm base: remove include/spec/* other than ISA 2017-05-31 13:16:01 +02:00