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
cd4a5f7a
Commit
cd4a5f7a
authored
Dec 06, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
80736395
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
3 deletions
+2
-3
bigfile/file_zodb.py
bigfile/file_zodb.py
+1
-1
bigfile/virtmem.c
bigfile/virtmem.c
+1
-0
include/wendelin/bigfile/file.h
include/wendelin/bigfile/file.h
+0
-2
No files found.
bigfile/file_zodb.py
View file @
cd4a5f7a
...
@@ -755,7 +755,7 @@ Connection.open = Connection_open
...
@@ -755,7 +755,7 @@ Connection.open = Connection_open
class
_ZBigFileH
(
object
):
class
_ZBigFileH
(
object
):
# .zfile ZBigFile we were opened for
# .zfile ZBigFile we were opened for
# .wcfileh handle for ZBigFile in wcfs | None
# .wcfileh handle for ZBigFile in wcfs | None
# .zfileh handle for ZBigFile (overlayed over .wcfileh if .wcfileh != ø)
# .zfileh handle for ZBigFile
in virtmem
(overlayed over .wcfileh if .wcfileh != ø)
def
__init__
(
self
,
zfile
,
wcfileh
):
def
__init__
(
self
,
zfile
,
wcfileh
):
self
.
zfile
=
zfile
self
.
zfile
=
zfile
...
...
bigfile/virtmem.c
View file @
cd4a5f7a
...
@@ -162,6 +162,7 @@ int fileh_open(BigFileH *fileh, BigFile *file, RAM *ram, FileHOpenFlags flags)
...
@@ -162,6 +162,7 @@ int fileh_open(BigFileH *fileh, BigFile *file, RAM *ram, FileHOpenFlags flags)
if
(
flags
==
MMAP_OVERLAY
)
{
if
(
flags
==
MMAP_OVERLAY
)
{
ASSERT
(
fops
->
mmap_setup_read
);
ASSERT
(
fops
->
mmap_setup_read
);
ASSERT
(
fops
->
remmap_blk_read
);
ASSERT
(
fops
->
remmap_blk_read
);
// XXX assert fops->munmap
}
}
if
(
flags
==
DONT_MMAP_OVERLAY
)
{
if
(
flags
==
DONT_MMAP_OVERLAY
)
{
ASSERT
(
fops
->
loadblk
);
ASSERT
(
fops
->
loadblk
);
...
...
include/wendelin/bigfile/file.h
View file @
cd4a5f7a
...
@@ -58,7 +58,6 @@ struct bigfile_ops {
...
@@ -58,7 +58,6 @@ struct bigfile_ops {
/* loadblk is called to load file block into memory.
/* loadblk is called to load file block into memory.
*
*
* NOTE loadblk is called from SIGSEGV signal handler context.
* NOTE loadblk is called from SIGSEGV signal handler context.
* XXX loadblk -> !mmap_read ?
*
*
* len(buf) must be = file->blksize.
* len(buf) must be = file->blksize.
* @return 0 - ok !0 - fail
* @return 0 - ok !0 - fail
...
@@ -102,7 +101,6 @@ struct bigfile_ops {
...
@@ -102,7 +101,6 @@ struct bigfile_ops {
*
*
* XXX called under virtmem lock?
* XXX called under virtmem lock?
*
*
* XXX mmap_read -> !loadblk ?
* NOTE blk and blklen are in blocks, not pages.
* NOTE blk and blklen are in blocks, not pages.
*
*
* @addr NULL - mmap at anywhere, !NULL - mmap exactly at addr. XXX
* @addr NULL - mmap at anywhere, !NULL - mmap exactly at addr. XXX
...
...
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