Merge branch 'vendor/OPENSSH' (early part)
[dragonfly.git] / tools / regression / nfsmmap / README
1 $DragonFly: src/tools/regression/nfsmmap/README,v 1.2 2008/07/09 18:15:10 thomas Exp $
2
3 These tests are intended to make sure that NFS's use of the
4 b_{valid,dirty}{off,end} fields of struct buf is consistent with the
5 VM system's use of the underlying VM pages.
6
7 Test1:
8         Open the file and write into the file, creating a buf
9         with a valid range and a dirty range
10
11         Fsync, flushing the dirty range
12
13         Mmap and read the whole page.  Since only part of the page is
14         valid, the VM system must re-read the invalid parts of the
15         page.
16
17 Test2:
18         This is the same as test1 without the fsync.  The VM system
19         should first write out the dirty range and then read the rest
20         of the page.  This is currently broken since the vnode_pager
21         doesn't use the original buf for its i/o and therefore the
22         information in b_dirtyoff, b_dirtyend is not available.