Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
233f81ee
Commit
233f81ee
authored
Jul 11, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
4a20a573
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
8 deletions
+27
-8
bigfile/tests/test_virtmem.c
bigfile/tests/test_virtmem.c
+22
-8
wcfs/TODO.txt
wcfs/TODO.txt
+5
-0
No files found.
bigfile/tests/test_virtmem.c
View file @
233f81ee
...
...
@@ -1428,12 +1428,24 @@ void test_file_access_mmapbase(void)
CHECK_MRU
(
page3
,
page0
,
page2
);
CHECK_DIRTY
(
page3
,
page0
,
page2
);
// XXX unmap vma2 ?
/* unmap vma2 */
diag
(
"unmap vma2"
);
vma_unmap
(
vma2
);
ok1
(
fh
->
mmaps
.
next
==
&
vma
->
same_fileh
);
ok1
(
vma
->
same_fileh
.
next
==
&
fh
->
mmaps
);
ok1
(
M
(
vma
,
0
));
CHECK_PAGE
(
page0
,
100
,
PAGE_DIRTY
,
1
);
ok1
(
!
M
(
vma
,
1
));
CHECK_NOPAGE
(
101
);
ok1
(
M
(
vma
,
2
));
CHECK_PAGE
(
page2
,
102
,
PAGE_DIRTY
,
1
);
ok1
(
M
(
vma
,
3
));
CHECK_PAGE
(
page3
,
103
,
PAGE_DIRTY
,
1
);
CHECK_MRU
(
page3
,
page0
,
page2
);
CHECK_DIRTY
(
page3
,
page0
,
page2
);
/* discard - changes should go away */
diag
(
"discard"
);
fprintf
(
stderr
,
"
\n\n\n\n
"
);
fileh_dirty_discard
(
fh
);
CHECK_NOPAGE
(
100
);
...
...
@@ -1443,11 +1455,6 @@ void test_file_access_mmapbase(void)
ok1
(
!
M
(
vma
,
2
));
CHECK_NOPAGE
(
102
);
ok1
(
!
M
(
vma
,
3
));
CHECK_NOPAGE
(
103
);
ok1
(
!
M
(
vma2
,
0
));
ok1
(
!
M
(
vma2
,
1
));
ok1
(
!
M
(
vma2
,
2
));
ok1
(
!
M
(
vma2
,
3
));
CHECK_MRU
(
/*empty*/
);
CHECK_DIRTY
(
/*empty*/
);
...
...
@@ -1472,13 +1479,20 @@ void test_file_access_mmapbase(void)
// XXX writeout STORE, MARK, STORE+MARK
diag
(
"writeout"
);
// XXX ...
// XXX invalidation ?
// XXX fileh close
/* free resources */
ram_close
(
ram
);
free
(
ram
);
#undef CHECK_MRU
#undef CHECK_PAGE
...
...
wcfs/TODO.txt
View file @
233f81ee
- doc: notes on how things are organized in wendelin.core 2
wcfs:
- SIGSEGV is used only to track writes
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment