]> Zhao Yanbai Git Server - minix.git/commit
Add libfsdriver: a library to drive file systems 41/2741/3
authorDavid van Moolenbroek <david@minix3.org>
Sun, 24 Aug 2014 09:27:54 +0000 (09:27 +0000)
committerDavid van Moolenbroek <david@minix3.org>
Thu, 18 Sep 2014 12:46:23 +0000 (12:46 +0000)
commit89c9de7d091f384bd4337bd6775fb15c93b8e8c6
treec2875f655db2c3de7a711f8619a5dd30d85d8437
parente7b4aa7d99313d4fce05fc497a870819076f14ca
Add libfsdriver: a library to drive file systems

This library provides new abstractions for the upper (VFS) side of
file system services, and should be used for all file system service
implementations from now on.  It provides the following functionality:

  - a function call table abstraction, hiding the details of the
    VFS-FS protocol with simple parameters;
  - a (currently limited) number of per-function steps required for
    all file system implementations, such as copying in and out path
    names and result buffers;
  - a default implementation for multicomponent path lookups, such
    that the file system merely has to implement resolution of single
    components at a time;
  - an abstraction for copying data from and to the file system, which
    allows transparent intraprocess copying as required for the lookup
    implementation;
  - a set of functions to simplify getdents implementations.

The message loop provided by the library is currently for use by
single-threaded file system implementations only.  Multithreaded file
system services may use the more low-level message processing
functionality.

Protocol-level optimizations such as including names in protocol
messages may be hidden entirely in this library.  In addition, in the
future, the lookup implementation may be replaced by a single-
component lookup VFS/FS protocol request as part of a VFS name cache
implementation; this, too, can be hidden entirely in this library.

Change-Id: Ib34f0d0e021dfa3426ce8826efcf3eaa94d3ef3e
14 files changed:
distrib/sets/lists/minix/mi
lib/Makefile
minix/include/minix/Makefile
minix/include/minix/fsdriver.h [new file with mode: 0644]
minix/lib/Makefile
minix/lib/libfsdriver/Makefile [new file with mode: 0644]
minix/lib/libfsdriver/call.c [new file with mode: 0644]
minix/lib/libfsdriver/dentry.c [new file with mode: 0644]
minix/lib/libfsdriver/fsdriver.c [new file with mode: 0644]
minix/lib/libfsdriver/fsdriver.h [new file with mode: 0644]
minix/lib/libfsdriver/lookup.c [new file with mode: 0644]
minix/lib/libfsdriver/table.c [new file with mode: 0644]
minix/lib/libfsdriver/utility.c [new file with mode: 0644]
share/mk/bsd.prog.mk