minix/minix/tests
David van Moolenbroek e321f65582 libfsdriver: support mmap on FSes with no device
This patch adds (very limited) support for memory-mapping pages on
file systems that are mounted on the special "none" device and that
do not implement PEEK support by themselves.  This includes hgfs,
vbfs, and procfs.

The solution is implemented in libvtreefs, and consists of allocating
pages, filling them with content by calling the file system's READ
functionality, passing the pages to VM, and freeing them again.  A new
VM flag is used to indicate that these pages should be mapped in only
once, and thus not cached beyond their single use.  This prevents
stale data from getting mapped in without the involvement of the file
system, which would be problematic on file systems where file contents
may become outdated at any time.  No VM caching means no sharing and
poor performance, but mmap no longer fails on these file systems.

Compared to a libc-based approach, this patch retains the on-demand
nature of mmap.  Especially tail(1) is known to map in a large file
area only to use a small portion of it.

All file systems now need to be given permission for the SETCACHEPAGE
and CLEARCACHE calls to VM.

A very basic regression test is added to test74.

Change-Id: I17afc4cb97315b515cad1542521b98f293b6b559
2014-11-15 11:19:52 +00:00
..
blocktest IOCTL requests are unsigned longs now 2014-09-29 15:11:01 +00:00
ddekit merge libminlib with libc 2014-08-28 18:49:19 +02:00
ds merge libminlib with libc 2014-08-28 18:49:19 +02:00
fbdtest Move all services to /service 2014-07-31 16:00:31 +02:00
ipc New sources layout 2014-07-31 16:00:30 +02:00
kernel merge libminlib with libc 2014-08-28 18:49:19 +02:00
safecopy merge libminlib with libc 2014-08-28 18:49:19 +02:00
check-install /usr/tests/minix-posix/check-install 2014-08-13 16:42:57 +02:00
common.c New sources layout 2014-07-31 16:00:30 +02:00
common.h New sources layout 2014-07-31 16:00:30 +02:00
magic.h New sources layout 2014-07-31 16:00:30 +02:00
Makefile tests: fix clang warnings 2014-09-29 16:16:32 +00:00
Makefile.inc New sources layout 2014-07-31 16:00:30 +02:00
mod.c New sources layout 2014-07-31 16:00:30 +02:00
run some small changes 2014-08-28 18:49:03 +02:00
t10a.c New sources layout 2014-07-31 16:00:30 +02:00
t11a.c New sources layout 2014-07-31 16:00:30 +02:00
t11b.c New sources layout 2014-07-31 16:00:30 +02:00
t40a.c New sources layout 2014-07-31 16:00:30 +02:00
t40b.c New sources layout 2014-07-31 16:00:30 +02:00
t40c.c New sources layout 2014-07-31 16:00:30 +02:00
t40d.c New sources layout 2014-07-31 16:00:30 +02:00
t40e.c New sources layout 2014-07-31 16:00:30 +02:00
t40f.c New sources layout 2014-07-31 16:00:30 +02:00
t40g.c New sources layout 2014-07-31 16:00:30 +02:00
t60a.c New sources layout 2014-07-31 16:00:30 +02:00
t60b.c New sources layout 2014-07-31 16:00:30 +02:00
t67a.c New sources layout 2014-07-31 16:00:30 +02:00
t67b.c New sources layout 2014-07-31 16:00:30 +02:00
t68a.c New sources layout 2014-07-31 16:00:30 +02:00
t68b.c New sources layout 2014-07-31 16:00:30 +02:00
test1.c New sources layout 2014-07-31 16:00:30 +02:00
test2.c New sources layout 2014-07-31 16:00:30 +02:00
test3.c New sources layout 2014-07-31 16:00:30 +02:00
test4.c New sources layout 2014-07-31 16:00:30 +02:00
test5.c New sources layout 2014-07-31 16:00:30 +02:00
test6.c New sources layout 2014-07-31 16:00:30 +02:00
test7.c New sources layout 2014-07-31 16:00:30 +02:00
test8.c New sources layout 2014-07-31 16:00:30 +02:00
test9.c New sources layout 2014-07-31 16:00:30 +02:00
test10.c New sources layout 2014-07-31 16:00:30 +02:00
test11.c New sources layout 2014-07-31 16:00:30 +02:00
test12.c New sources layout 2014-07-31 16:00:30 +02:00
test13.c New sources layout 2014-07-31 16:00:30 +02:00
test14.c New sources layout 2014-07-31 16:00:30 +02:00
test15.c New sources layout 2014-07-31 16:00:30 +02:00
test16.c New sources layout 2014-07-31 16:00:30 +02:00
test17.c New sources layout 2014-07-31 16:00:30 +02:00
test18.c New sources layout 2014-07-31 16:00:30 +02:00
test19.c New sources layout 2014-07-31 16:00:30 +02:00
test20.c New sources layout 2014-07-31 16:00:30 +02:00
test21.c New sources layout 2014-07-31 16:00:30 +02:00
test22.c New sources layout 2014-07-31 16:00:30 +02:00
test23.c New sources layout 2014-07-31 16:00:30 +02:00
test24.c New sources layout 2014-07-31 16:00:30 +02:00
test25.c New sources layout 2014-07-31 16:00:30 +02:00
test26.c New sources layout 2014-07-31 16:00:30 +02:00
test27.c New sources layout 2014-07-31 16:00:30 +02:00
test28.c New sources layout 2014-07-31 16:00:30 +02:00
test29.c New sources layout 2014-07-31 16:00:30 +02:00
test30.c New sources layout 2014-07-31 16:00:30 +02:00
test31.c New sources layout 2014-07-31 16:00:30 +02:00
test32.c New sources layout 2014-07-31 16:00:30 +02:00
test33.c New sources layout 2014-07-31 16:00:30 +02:00
test34.c tests: fix clang warnings 2014-09-29 16:16:32 +00:00
test35.c tests: fix clang warnings 2014-09-29 16:16:32 +00:00
test36.c New sources layout 2014-07-31 16:00:30 +02:00
test37.c tests: fix clang warnings 2014-09-29 16:16:32 +00:00
test38.c New sources layout 2014-07-31 16:00:30 +02:00
test39.c New sources layout 2014-07-31 16:00:30 +02:00
test40.c New sources layout 2014-07-31 16:00:30 +02:00
test41.c New sources layout 2014-07-31 16:00:30 +02:00
test42.c tests: fix clang warnings 2014-09-29 16:16:32 +00:00
test43.c New sources layout 2014-07-31 16:00:30 +02:00
test44.c New sources layout 2014-07-31 16:00:30 +02:00
test45.c New sources layout 2014-07-31 16:00:30 +02:00
test45.h New sources layout 2014-07-31 16:00:30 +02:00
test46.c tests: fix clang warnings 2014-09-29 16:16:32 +00:00
test47.c New sources layout 2014-07-31 16:00:30 +02:00
test48.c fix test48 - minix3.org.xyz resolves now 2014-08-22 12:38:09 +02:00
test49.c New sources layout 2014-07-31 16:00:30 +02:00
test50.c New sources layout 2014-07-31 16:00:30 +02:00
test51.c tests: fix clang warnings 2014-09-29 16:16:32 +00:00
test52.c New sources layout 2014-07-31 16:00:30 +02:00
test53.c New sources layout 2014-07-31 16:00:30 +02:00
test54.c New sources layout 2014-07-31 16:00:30 +02:00
test55.c New sources layout 2014-07-31 16:00:30 +02:00
test56.c test56: fix race condition 2014-09-29 16:16:36 +00:00
test57.c New sources layout 2014-07-31 16:00:30 +02:00
test57loop.S New sources layout 2014-07-31 16:00:30 +02:00
test58.c New sources layout 2014-07-31 16:00:30 +02:00
test59.c test59: fix status type for mthread_join call 2014-08-24 09:22:35 +00:00
test60.c New sources layout 2014-07-31 16:00:30 +02:00
test61.c New sources layout 2014-07-31 16:00:30 +02:00
test62.c New sources layout 2014-07-31 16:00:30 +02:00
test63.c New sources layout 2014-07-31 16:00:30 +02:00
test64.c New sources layout 2014-07-31 16:00:30 +02:00
test65.c New sources layout 2014-07-31 16:00:30 +02:00
test66.c New sources layout 2014-07-31 16:00:30 +02:00
test66expected.h New sources layout 2014-07-31 16:00:30 +02:00
test67.c New sources layout 2014-07-31 16:00:30 +02:00
test68.c Fix fcntl(F_[GS]ETNOSIGPIPE) semantics 2014-11-01 12:57:31 +00:00
test69.c New sources layout 2014-07-31 16:00:30 +02:00
test70.c New sources layout 2014-07-31 16:00:30 +02:00
test71.c New sources layout 2014-07-31 16:00:30 +02:00
test72.c libfsdriver: support mmap on FSes with no device 2014-11-15 11:19:52 +00:00
test73.c libminixfs: add block I/O routines 2014-09-18 12:46:25 +00:00
test74.c libfsdriver: support mmap on FSes with no device 2014-11-15 11:19:52 +00:00
test75.c New sources layout 2014-07-31 16:00:30 +02:00
test76.c test76: increase alarm times 2014-11-12 12:12:40 +00:00
test77.c VFS: unbreak select on /dev/tty 2014-08-28 16:30:48 +00:00
test78.c New sources layout 2014-07-31 16:00:30 +02:00
test79.c New sources layout 2014-07-31 16:00:30 +02:00
testcache.c New sources layout 2014-07-31 16:00:30 +02:00
testcache.h New sources layout 2014-07-31 16:00:30 +02:00
testinterp.sh New sources layout 2014-07-31 16:00:30 +02:00
testisofs.sh tests: reenable testisofs 2014-09-18 13:01:13 +00:00
testkyua.sh New sources layout 2014-07-31 16:00:30 +02:00
testmfs.sh New sources layout 2014-07-31 16:00:30 +02:00
testsh1.sh Porting uuencode/uudecode from NetBSD 2014-09-08 19:51:28 +02:00
testsh2.sh New sources layout 2014-07-31 16:00:30 +02:00
testvm.c libfsdriver: support mmap on FSes with no device 2014-11-15 11:19:52 +00:00
testvm.conf New sources layout 2014-07-31 16:00:30 +02:00
testvm.h New sources layout 2014-07-31 16:00:30 +02:00
testvnd.sh Importing bin/sh 2014-08-29 12:56:04 -04:00
tvnd.c New sources layout 2014-07-31 16:00:30 +02:00