No description
Find a file
Ben Gras bd3cde4571 Move primary cache code to libminixfs.
Add primary cache management feature to libminixfs as mfs and ext2
currently do separately, remove cache code from mfs and ext2, and make
them use the libminixfs interface. This makes all fields of the buf
struct private to libminixfs and FS clients aren't supposed to access
them at all. Only the opaque 'void *data' field (the FS block contents,
used to be called bp) is to be accessed by the FS client.

The main purpose is to implement the interface to the 2ndary vm cache
just once, get rid of some code duplication, and add a little
abstraction to reduce the code inertia of the whole caching business.

Some minor sanity checking and prohibition done by mfs in this code
as removed from the generic primary cache code as a result:
        - checking all inodes are not in use when allocating/resizing
          the cache
        - checking readonly filesystems aren't written to
        - checking the superblock isn't written to on mounted filesystems

The minixfslib code relies on fs_blockstats() in the client filesystem to
return some FS usage information.
2012-10-23 19:48:38 +02:00
benchmarks Fixed unixbench Run script 2010-10-25 08:32:14 +00:00
bin No need to define NETBSD_SOURCE explicitly 2012-06-18 10:53:34 +00:00
commands Importing cksum (needed by NetBSD build system) 2012-10-23 12:02:51 +02:00
common expose some terminal definitions by default 2012-10-13 03:15:14 +02:00
dist/bzip2 import NetBSD bzip2 and libbz2 2011-11-18 11:11:04 +01:00
docs mkfs.mfs: dynamically size image from proto 2012-10-12 15:13:43 +02:00
drivers mmc:Fixes for coverity. 2012-10-22 13:40:22 +02:00
etc update_bootcfg(8): various improvements 2012-10-16 10:34:58 +02:00
external xz: add libc dependency 2012-06-25 17:21:01 +02:00
gnu/dist fetch.sh: serve tarballs ourselves 2012-06-25 10:46:31 +00:00
include Move primary cache code to libminixfs. 2012-10-23 19:48:38 +02:00
kernel ARM support for kernel and vm 2012-10-07 21:38:03 -04:00
lib Move primary cache code to libminixfs. 2012-10-23 19:48:38 +02:00
libexec ld.so: be more mmap()-behaviour-independent 2012-06-25 14:13:07 +02:00
man Retire checkhier(8) 2012-10-17 23:00:59 +02:00
releasetools Importing cksum (needed by NetBSD build system) 2012-10-23 12:02:51 +02:00
sbin Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
servers Move primary cache code to libminixfs. 2012-10-23 19:48:38 +02:00
share ARM support for system libraries 2012-08-28 13:49:27 -04:00
sys bootloader: usability improvements 2012-10-12 01:03:36 +02:00
test blocktest: make fewer assumptions about driver 2012-10-15 11:50:59 +00:00
tools Importing cksum (needed by NetBSD build system) 2012-10-23 12:02:51 +02:00
usr.bin Importing cksum (needed by NetBSD build system) 2012-10-23 12:02:51 +02:00
usr.sbin Importing postinstall 2012-10-22 11:37:43 +02:00
.gitignore Update gitignore for releasetools 2012-06-18 10:54:52 +00:00
build.sh Cross compile MFS ramdisk 2012-06-18 10:54:55 +00:00
LICENSE Fix parameter parsing in cut 2010-01-21 10:16:05 +00:00
Makefile Import NetBSD tools and build.sh 2012-06-18 10:54:51 +00:00