Commit 35db5b7f authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 4dcd2044
...@@ -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 as all zeros. // mmap_zero_into_ro mmaps read-only zeros into [addr +size) so that region is 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");
......
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