genode/libports/lib/mk
Norman Feske ae1d0c04ae File-system interface, ram_fs, libc-fs
This patch introduces the file-system-session interface, provides an
implementation of this interface in the form of an in-memory file
system, and enables the libc to use the new file-system facility.

The new interface resides in 'os/include/file_system_session/'. It
uses synchronous RPC calls for functions referring to directory
and meta-data handling. For transferring payload from/to files, the
packet-stream interface is used. I envision that the asynchronous design
of the packet-stream interface fits well will the block-session
interface. Compared to Unix-like file-system APIs, Genode's file-system
session interface is much simpler. In particular, it does not support
per-file permissions. On Genode, we facilitate binding policy (such as
write-permission) is sessions rather than individual file objects.

As a reference implementation of the new interface, there is the
new 'ram_fs' service at 'os/src/server/ram_fs'. It stores sparse
files in memory. At the startup, 'ram_fs' is able to populate the
file-system content with directories and ROM modules as specified
in its configuration.

To enable libc-using programs to access the new file-system interface,
there is the new libc plugin at 'libports/src/lib/libc-fs'. Using this
plugin, files stored on a native Genode file system can be accessed
using the traditional POSIX file API.

To see how the three parts described above fit together, the test
case at 'libports/run/libc_fs' can be taken as reference. It reuses
the original 'libc_ffat' test to exercise several file operations
on a RAM file-system using the libc API.

:Known limitations:

The current state should be regarded as work in progress. In particular
the error handling is not complete yet. Not all of the session functions
return the proper exceptions in the event of an error. I plan to
successively refine the interface while advancing the file-system
implementations. Also the support for truncating files and symlink
handling are not yet implemented.

Furthermore, there is much room for optimization, in particular for the
handling of directory entries. Currently, we communicate only one dir
entry at a time, which is bad when traversing large trees. However, I
decided to focus on functionality first and defer optimizations (such as
batching dir entries) to a later stage.

The current implementation does not handle file modification times at
all, which may be a severe limitation for tools that depend on this
information such as GNU make. Support for time will be added after we
have revisited Genode's timer-session interface (issue #1).

Fixes #54
Fixes #171
2012-05-17 20:33:53 +02:00
..
arm Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
x86_32 Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
x86_64 Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
ffat_block.mk Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
freetype.mk Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
gallium-aux.mk Heuristics for determining python2 binary 2012-04-05 10:40:46 +02:00
gallium-egl.mk Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
gallium-failover.mk Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
gallium-i915.mk Constrain build of gallium-i915 lib to i915 SPEC 2012-01-25 16:08:32 +01:00
gallium-identity.mk Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
gallium-softpipe.mk Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
gallium-trace.mk Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
gallium.inc Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
gallium.mk Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
gmp-mpf.mk Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
gmp-mpq.mk Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
gmp-mpz.mk Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
gmp.inc Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
gmp.mk Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
history.mk Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
jbig2dec.mk Build jbig2dec as shared library, fix mupdf.run 2012-02-24 13:39:23 +01:00
jpeg.mk Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
libc_ffat.mk Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
libc_fs.mk File-system interface, ram_fs, libc-fs 2012-05-17 20:33:53 +02:00
libc_lock_pipe.mk Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
libc_log.mk Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
libc_lwip_loopback.mk Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
libc_lwip_nic_dhcp.mk Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
libc_lwip.mk Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
libc_rom.mk Libc plugin for using file I/O on ROM dataspaces 2012-02-14 16:44:42 +01:00
libc_terminal.mk Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
libc-common.inc Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
libc-compat.mk Add libc/compat to libc, fix #63 2012-01-06 13:21:29 +01:00
libc-gdtoa.mk Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
libc-gen.inc Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
libc-inet.mk Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
libc-locale.mk Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
libc-regex.mk Add libc/regex to libc, fix #64 2012-01-06 09:25:57 +01:00
libc-stdio.mk Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
libc-stdlib.mk Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
libc-stdtime.mk Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
libc-string.mk Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
libc.mk Implement '_nanosleep()' 2012-03-21 22:05:55 +01:00
libdrm.mk Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
libm.mk Preliminary 'log2()' and 'log2f()' implementation 2012-03-08 10:42:21 +01:00
libpng.mk Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
lwip.mk Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
mesa-egl.mk Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
mesa.inc Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
mesa.mk Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
mpfr.mk Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
mupdf.mk Add openjpeg, jbig2dec, and mupdf to libports 2012-01-02 17:09:18 +01:00
ncurses.mk Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
openjpeg.mk Fix dependency rules in openjpeg library makefile. 2012-01-06 09:33:33 +01:00
pthread.mk POSIX threads and semaphores 2012-04-16 12:16:40 +02:00
python.inc Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
readline.mk Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
sdl.mk SDL audio support 2012-05-10 19:07:54 +02:00
test-ldso2.mk Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
test-ldso.mk Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
zlib.mk Update zlib to version 1.2.7, fix #196 2012-05-03 23:32:56 +02:00