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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
35db5b7f
Commit
35db5b7f
authored
Feb 21, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
4dcd2044
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
wcfs/client/wcfs.cpp
wcfs/client/wcfs.cpp
+11
-3
No files found.
wcfs/client/wcfs.cpp
View file @
35db5b7f
...
@@ -52,9 +52,18 @@
...
@@ -52,9 +52,18 @@
// server. The requests are sent to tell wcfs that client wants to observe a
// server. The requests are sent to tell wcfs that client wants to observe a
// particular bigfile as of particular revision, or stop watching for it.
// particular bigfile as of particular revision, or stop watching for it.
//
//
// XXX mmap zeros after .headfsize
// (mmap-in zeros after f.size (else access to memory after file.size will raise SIGBUS))
// (assumes head/f size ↑=)
//
//
// Every FileH maintains
// Every FileH maintains
//
//
// XXX fh.headfsize - refreshed at txn boundary; assumed to be ^ ;
// XXX fh.pinned
// used on:
// - FileH.mmap (create new mapping)
// - Mapping.remmap_blk (call from virtmem after RW -> RO)
//
//
//
//
//
// Integration with wendelin.core virtmem layer
// Integration with wendelin.core virtmem layer
...
@@ -559,7 +568,6 @@ error _FileH::close() {
...
@@ -559,7 +568,6 @@ error _FileH::close() {
}
}
// resync resyncs connection and its file mappings onto different database view.
// resync resyncs connection and its file mappings onto different database view.
// XXX place=? -> closer to pinner & connect
error
_Conn
::
resync
(
zodb
::
Tid
at
)
{
error
_Conn
::
resync
(
zodb
::
Tid
at
)
{
_Conn
&
wconn
=
*
this
;
_Conn
&
wconn
=
*
this
;
error
err
;
error
err
;
...
@@ -927,7 +935,7 @@ tuple<os::File, error> WCFS::_open(const string &path, int flags) {
...
@@ -927,7 +935,7 @@ tuple<os::File, error> WCFS::_open(const string &path, int flags) {
// ---- misc ----
// ---- misc ----
// mmap_zero_into_ro mmaps read-only zeros into [addr +size) so that region
a
s all zeros.
// mmap_zero_into_ro mmaps read-only zeros into [addr +size) so that region
i
s all zeros.
// created mapping, even after it is accessed, does not consume memory.
// created mapping, even after it is accessed, does not consume memory.
static
error
mmap_zero_into_ro
(
void
*
addr
,
size_t
size
)
{
static
error
mmap_zero_into_ro
(
void
*
addr
,
size_t
size
)
{
xerr
::
Contextf
E
(
"mmap zero"
);
xerr
::
Contextf
E
(
"mmap zero"
);
...
...
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