minix/share/mk
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
..
bsd.dep.mk Import NetBSD mkdep 2011-07-22 17:28:27 +02:00
bsd.doc.mk import elf-only -lcurses 2011-07-25 11:08:17 +02:00
bsd.files.mk mk scripts: add flag for compiling with nbsd libc. 2011-03-03 16:41:19 +00:00
bsd.inc.mk share/mk: use original stat -qf 2011-07-19 18:38:06 +02:00
bsd.info.mk import NetBSD bzip2 and libbz2 2011-11-18 11:11:04 +01:00
bsd.init.mk Move mkfiles from /etc/mk to /usr/share/mk 2010-06-25 19:33:56 +00:00
bsd.kinc.mk share/mk: use original stat -qf 2011-07-19 18:38:06 +02:00
bsd.klinks.mk Move mkfiles from /etc/mk to /usr/share/mk 2010-06-25 19:33:56 +00:00
bsd.lib.mk Import NetBSD mkdep 2011-07-22 17:28:27 +02:00
bsd.links.mk Move mkfiles from /etc/mk to /usr/share/mk 2010-06-25 19:33:56 +00:00
bsd.man.mk Move mkfiles from /etc/mk to /usr/share/mk 2010-06-25 19:33:56 +00:00
bsd.obj.mk Move mkfiles from /etc/mk to /usr/share/mk 2010-06-25 19:33:56 +00:00
bsd.own.mk update/fix manpage support 2011-09-28 15:24:15 +00:00
bsd.prog.mk Split block/character protocols and libdriver 2011-11-23 14:06:37 +01:00
bsd.subdir.mk Move mkfiles from /etc/mk to /usr/share/mk 2010-06-25 19:33:56 +00:00
bsd.sys.mk Reduce compiler/libraries/headers cases to only two 2011-07-04 04:09:52 +02:00
Makefile import NetBSD bzip2 and libbz2 2011-11-18 11:11:04 +01:00
minix.ack.mk minix.ack.mk: use CPPFLAGS for ACK asm files 2011-08-05 14:16:48 +02:00
minix.ackdep.mk Import NetBSD mkdep 2011-07-22 17:28:27 +02:00
minix.bootprog.mk Fix GCC image building 2011-07-09 15:04:42 +02:00
minix.gcc.mk Fix a ton of compiler warnings 2011-11-14 10:07:49 +00:00
minix.gcov.mk Import NetBSD mkdep 2011-07-22 17:28:27 +02:00
minix.newlibc.mk update/fix manpage support 2011-09-28 15:24:15 +00:00
minix.service.mk Move minimal libc from libsys into separate lib. 2011-07-09 22:32:38 +02:00
pkgsrchooks.mk Reduce compiler/libraries/headers cases to only two 2011-07-04 04:09:52 +02:00
sys.mk make: set MACHINE_ARCH variable 2011-11-18 16:22:25 +01:00