minix/servers/iso9660fs
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
..
buf.h increase system-wide filename limit to 255 2011-08-17 16:00:01 +00:00
cache.c Split block/character protocols and libdriver 2011-11-23 14:06:37 +01:00
const.h libbdev: initial version 2011-11-09 14:43:25 +01:00
glo.h fix mfs/isofs signal handling 2010-04-15 16:10:28 +00:00
inc.h libbdev: initial version 2011-11-09 14:43:25 +01:00
inode.c Use of all NIL_* defines converted to NULL 2010-05-10 13:26:00 +00:00
inode.h Initial import of ISOFS by Jacopo Urbani 2009-10-01 14:00:27 +00:00
main.c libbdev: initial version 2011-11-09 14:43:25 +01:00
Makefile libbdev: initial version 2011-11-09 14:43:25 +01:00
misc.c libbdev: initial version 2011-11-09 14:43:25 +01:00
mount.c libbdev: initial version 2011-11-09 14:43:25 +01:00
path.c Fix a few compile time warnings 2010-07-02 12:41:19 +00:00
protect.c - Introduce support for sticky bit. 2009-12-20 20:27:14 +00:00
proto.h isofs: unbreak lseek 2011-11-22 11:46:55 +01:00
read.c Build NetBSD libc library in world in ELF mode. 2011-06-24 11:46:30 +02:00
stadir.c New stat structure. 2011-07-12 16:39:55 +02:00
super.c libbdev: initial version 2011-11-09 14:43:25 +01:00
super.h Initial import of ISOFS by Jacopo Urbani 2009-10-01 14:00:27 +00:00
table.c isofs: unbreak lseek 2011-11-22 11:46:55 +01:00
utility.c isofs: unbreak lseek 2011-11-22 11:46:55 +01:00