Commit 4a88c96a authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 3f6fdab8
...@@ -1545,8 +1545,34 @@ void test_file_access_mmapbase(void) ...@@ -1545,8 +1545,34 @@ void test_file_access_mmapbase(void)
xmunmap(b2, PS); xmunmap(b2, PS);
diag("writeout (mark)"); diag("writeout (mark)");
file.nstoreblk = 0;
ok1(!fileh_dirty_writeout(fh, WRITEOUT_MARKSTORED)); ok1(!fileh_dirty_writeout(fh, WRITEOUT_MARKSTORED));
// XXX ok1(file.nstoreblk == 0);
ok1(!M(vma, 0)); CHECK_NOPAGE( 100 );
ok1(!M(vma, 1)); CHECK_NOPAGE( 101 );
CHECK_NOPAGE( 102 );
CHECK_NOPAGE( 103 );
CHECK_MRU (/*empty*/);
CHECK_DIRTY (/*empty*/);
vma_unmap(vma);
err = fileh_mmap(vma, fh, 100, 4);
/* data saved, served from base layer */
ok1(B(vma, 0*PSb + 0) == 10);
ok1(B(vma, 0*PSb + 1) == 100);
ok1(B(vma, 0*PSb + PSb - 1) == 100);
ok1(B(vma, 2*PSb + 0) == 12);
ok1(B(vma, 2*PSb + 1) == 102);
ok1(B(vma, 2*PSb + PSb - 1) == 102);
ok1(!M(vma, 0)); CHECK_NOPAGE( 100 );
ok1(!M(vma, 1)); CHECK_NOPAGE( 101 );
ok1(!M(vma, 2)); CHECK_NOPAGE( 102 );
ok1(!M(vma, 3)); CHECK_NOPAGE( 103 );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment