minix/servers/vfs
David van Moolenbroek b4d909d415 Split block/character protocols and libdriver
This patch separates the character and block driver communication
protocols. The old character protocol remains the same, but a new
block protocol is introduced. The libdriver library is replaced by
two new libraries: libchardriver and libblockdriver. Their exposed
API, and drivers that use them, have been updated accordingly.
Together, libbdev and libblockdriver now completely abstract away
the message format used by the block protocol. As the memory driver
is both a character and a block device driver, it now implements its
own message loop.

The most important semantic change made to the block protocol is that
it is no longer possible to return both partial results and an error
for a single transfer. This simplifies the interaction between the
caller and the driver, as the I/O vector no longer needs to be copied
back. Also, drivers are now no longer supposed to decide based on the
layout of the I/O vector when a transfer should be cut short. Put
simply, transfers are now supposed to either succeed completely, or
result in an error.

After this patch, the state of the various pieces is as follows:
- block protocol: stable
- libbdev API: stable for synchronous communication
- libblockdriver API: needs slight revision (the drvlib/partition API
  in particular; the threading API will also change shortly)
- character protocol: needs cleanup
- libchardriver API: needs cleanup accordingly
- driver restarts: largely unsupported until endpoint changes are
  reintroduced

As a side effect, this patch eliminates several bugs, hacks, and gcc
-Wall and -W warnings all over the place. It probably introduces a
few new ones, too.

Update warning: this patch changes the protocol between MFS and disk
drivers, so in order to use old/new images, the MFS from the ramdisk
must be used to mount all file systems.
2011-11-23 14:06:37 +01:00
..
const.h - Make sure there's space left in the vmnt table for another mount point. 2010-08-17 10:02:50 +00:00
device.c Split block/character protocols and libdriver 2011-11-23 14:06:37 +01:00
dmap.c Split block/character protocols and libdriver 2011-11-23 14:06:37 +01:00
dmap.h Clean up and fix multiple bugs in select: 2011-04-13 13:25:34 +00:00
elf_core_dump.c ELF core files 2011-11-22 22:07:40 +01:00
exec.c vfs/rs: for ELF, sep_id should be 0 2011-07-26 15:21:07 +02:00
exec.h VFS/RS support for ELF 2010-12-10 09:27:56 +00:00
file.h Clean up and fix multiple bugs in select: 2011-04-13 13:25:34 +00:00
filedes.c Split block/character protocols and libdriver 2011-11-23 14:06:37 +01:00
fproc.h vfs - split fp_fd field into fd + callnr fields 2010-07-22 14:55:28 +00:00
fs.h <ansi.h> -> <minix/ansi.h> 2011-01-28 11:35:02 +00:00
fscall.c Fix off-by-one errors and increase PATH_MAX to 1024 2011-09-12 09:00:24 +00:00
gcov.c decouple file system server start/termination from mount/umount 2010-11-23 19:34:56 +00:00
glo.h Fix off-by-one errors and increase PATH_MAX to 1024 2011-09-12 09:00:24 +00:00
link.c Fix off-by-one errors and increase PATH_MAX to 1024 2011-09-12 09:00:24 +00:00
lock.c Remove legacy MM, FS, and FS_PROC_NR macros 2010-06-08 13:58:01 +00:00
lock.h Use of all NIL_* defines converted to NULL 2010-05-10 13:26:00 +00:00
main.c Split block/character protocols and libdriver 2011-11-23 14:06:37 +01:00
Makefile ELF core files 2011-11-22 22:07:40 +01:00
misc.c Split block/character protocols and libdriver 2011-11-23 14:06:37 +01:00
mount.c VFS: bugfixes for handling block-special files: 2011-03-25 10:56:43 +00:00
open.c Split block/character protocols and libdriver 2011-11-23 14:06:37 +01:00
param.h Driver mapping refactory. 2010-04-09 21:56:44 +00:00
path.c Fix off-by-one errors and increase PATH_MAX to 1024 2011-09-12 09:00:24 +00:00
pipe.c Clean up and fix multiple bugs in select: 2011-04-13 13:25:34 +00:00
protect.c Increase gid_t and uid_t to 32 bits 2011-09-05 13:56:14 +00:00
proto.h Split block/character protocols and libdriver 2011-11-23 14:06:37 +01:00
read.c Prepare VFS to support back calls from PFS. For security reasons and to support 2010-08-30 13:44:07 +00:00
request.c New stat structure. 2011-07-12 16:39:55 +02:00
request.h - Fix dangling symlink regression 2010-01-21 09:32:15 +00:00
select.c Cleanup servers to make GCC/Clang a little happier 2011-09-08 13:57:03 +00:00
select.h Asynchronous select implementation. 2008-02-22 15:46:59 +00:00
stadir.c New stat structure. 2011-07-12 16:39:55 +02:00
table.c Servers: remove ABI comment 2011-11-07 22:24:59 +01:00
time.c Prepare VFS to support back calls from PFS. For security reasons and to support 2010-08-30 13:44:07 +00:00
utility.c Fix off-by-one errors and increase PATH_MAX to 1024 2011-09-12 09:00:24 +00:00
vmnt.c Use of all NIL_* defines converted to NULL 2010-05-10 13:26:00 +00:00
vmnt.h Use of all NIL_* defines converted to NULL 2010-05-10 13:26:00 +00:00
vnode.c add NOASSERTS make flag that disables assert()s (NDEBUG=1). 2011-02-16 18:58:30 +00:00
vnode.h Use of all NIL_* defines converted to NULL 2010-05-10 13:26:00 +00:00
write.c Remove useless variables and the computations on them. 2010-02-19 10:00:32 +00:00