1228975Suqs$FreeBSD: releng/10.3/tools/regression/nfsmmap/README 228975 2011-12-30 00:04:11Z uqs $ 225889SdfrThese tests are intended to make sure that NFS's use of the 325889Sdfrb_{valid,dirty}{off,end} fields of struct buf is consistent with the 425889SdfrVM system's use of the underlying VM pages. 525889Sdfr 625889SdfrTest1: 725889Sdfr Open the file and write into the file, creating a buf 825889Sdfr with a valid range and a dirty range 925889Sdfr 1025889Sdfr Fsync, flushing the dirty range 1125889Sdfr 1225889Sdfr Mmap and read the whole page. Since only part of the page is 1325889Sdfr valid, the VM system must re-read the invalid parts of the 1425889Sdfr page. 1525889Sdfr 1625889SdfrTest2: 1725889Sdfr This is the same as test1 without the fsync. The VM system 1825889Sdfr should first write out the dirty range and then read the rest 1925889Sdfr of the page. This is currently broken since the vnode_pager 2025889Sdfr doesn't use the original buf for its i/o and therefore the 21228975Suqs information in b_dirtyoff, b_dirtyend is not available. 22