freebsd-skq/tools/regression/nfsmmap
Warner Losh 3bdf775801 NO_MAN= has been deprecated in favor of MAN= for some time, go ahead
and finish the job. ncurses is now the only Makefile in the tree that
uses it since it wasn't a simple mechanical change, and will be
addressed in a future commit.
2014-04-13 05:21:56 +00:00
..
test1
test2
Makefile
README

$FreeBSD$
These tests are intended to make sure that NFS's use of the
b_{valid,dirty}{off,end} fields of struct buf is consistent with the
VM system's use of the underlying VM pages.

Test1:
	Open the file and write into the file, creating a buf
	with a valid range and a dirty range

	Fsync, flushing the dirty range

	Mmap and read the whole page.  Since only part of the page is
	valid, the VM system must re-read the invalid parts of the
	page.

Test2:
	This is the same as test1 without the fsync.  The VM system
	should first write out the dirty range and then read the rest
	of the page.  This is currently broken since the vnode_pager
	doesn't use the original buf for its i/o and therefore the
	information in b_dirtyoff, b_dirtyend is not available.