Commit cd4a5f7a authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 80736395
......@@ -755,7 +755,7 @@ Connection.open = Connection_open
class _ZBigFileH(object):
# .zfile ZBigFile we were opened for
# .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):
self.zfile = zfile
......
......@@ -162,6 +162,7 @@ int fileh_open(BigFileH *fileh, BigFile *file, RAM *ram, FileHOpenFlags flags)
if (flags == MMAP_OVERLAY) {
ASSERT(fops->mmap_setup_read);
ASSERT(fops->remmap_blk_read);
// XXX assert fops->munmap
}
if (flags == DONT_MMAP_OVERLAY) {
ASSERT(fops->loadblk);
......
......@@ -58,7 +58,6 @@ struct bigfile_ops {
/* loadblk is called to load file block into memory.
*
* NOTE loadblk is called from SIGSEGV signal handler context.
* XXX loadblk -> !mmap_read ?
*
* len(buf) must be = file->blksize.
* @return 0 - ok !0 - fail
......@@ -102,7 +101,6 @@ struct bigfile_ops {
*
* XXX called under virtmem lock?
*
* XXX mmap_read -> !loadblk ?
* NOTE blk and blklen are in blocks, not pages.
*
* @addr NULL - mmap at anywhere, !NULL - mmap exactly at addr. XXX
......
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