Commit cd4a5f7a authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 80736395
...@@ -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
......
...@@ -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);
......
...@@ -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
......
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