genode/repos/ports/src
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
..
app core: add map method to pd_session interface 2017-08-18 10:24:46 +02:00
lib VFS: nonblocking interface 2017-08-28 16:49:38 +02:00
noux VFS: nonblocking interface 2017-08-28 16:49:38 +02:00
noux-pkg gcc: RISC-V 6.3.0 2017-05-31 13:16:20 +02:00
test Move libc file-system test into test/libc_vfs 2017-08-17 11:04:22 +02:00
virtualbox vbox4: extended AMD SVM support 2017-06-29 11:59:59 +02:00
virtualbox5 vbox5: recognized more than 4Gb in VMs 2017-06-29 12:00:00 +02:00