minix/servers
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
..
apfs Split block/character protocols and libdriver 2011-11-23 14:06:37 +01:00
avfs Split block/character protocols and libdriver 2011-11-23 14:06:37 +01:00
devman Cleanup servers to make GCC/Clang a little happier 2011-09-08 13:57:03 +00:00
ds boot: Add multiboot support 2011-06-24 17:21:51 +02:00
ext2 Split block/character protocols and libdriver 2011-11-23 14:06:37 +01:00
hgfs Move optset.c into libsys; remove redundant copies 2011-11-07 16:16:08 +01:00
inet Split block/character protocols and libdriver 2011-11-23 14:06:37 +01:00
init Cleanup servers to make GCC/Clang a little happier 2011-09-08 13:57:03 +00:00
ipc vm/ipc: only report signals when it matters to ipc 2011-08-05 20:52:32 +00:00
is Remove legacy boot monitor vars 2011-09-16 20:10:47 +02:00
iso9660fs Split block/character protocols and libdriver 2011-11-23 14:06:37 +01:00
lwip Split block/character protocols and libdriver 2011-11-23 14:06:37 +01:00
mfs Split block/character protocols and libdriver 2011-11-23 14:06:37 +01:00
pfs Split block/character protocols and libdriver 2011-11-23 14:06:37 +01:00
pm gcore command to coredump a process 2011-11-22 22:07:41 +01:00
procfs pm: add mproc table sanity check feature 2011-11-18 17:18:10 +01:00
rs Cleanup servers to make GCC/Clang a little happier 2011-09-08 13:57:03 +00:00
sched boot: Add multiboot support 2011-06-24 17:21:51 +02:00
vfs Split block/character protocols and libdriver 2011-11-23 14:06:37 +01:00
vm Revert to using flushtlb instead of invlpg 2011-09-27 15:15:51 +00:00
Makefile Merge AVFS and APFS 2011-08-17 13:40:36 +00:00
Makefile.inc Fix GCC image building 2011-07-09 15:04:42 +02:00