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
2513bee7
Commit
2513bee7
authored
Feb 17, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
363674a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
bigfile/file_zodb.cpp
bigfile/file_zodb.cpp
+11
-3
wcfs/client/wcfs.cpp
wcfs/client/wcfs.cpp
+3
-0
No files found.
bigfile/file_zodb.cpp
View file @
2513bee7
...
...
@@ -45,8 +45,11 @@ static void* zfile_mmap_setup_read(VMA *vma, BigFile *file, blk_t blk, size_t bl
}
static
int
zfile_remmap_blk_read
(
VMA
*
vma
,
BigFile
*
file
,
blk_t
blk
)
{
wcfs
::
_Mapping
*
mmap
=
static_cast
<
wcfs
::
_Mapping
*>
(
vma
->
mmap_overlay_server
);
// XXX use file?
wcfs
::
_Mapping
*
mmap
=
static_cast
<
wcfs
::
_Mapping
*>
(
vma
->
mmap_overlay_server
);
_ZBigFile
*
_zfile
=
container_of
(
file
,
_ZBigFile
,
__pyx_base
.
file
);
if
(
mmap
->
fileh
!=
_zfile
->
wfileh
)
panic
(
"BUG: zfile_remmap_blk_read: vma and _zfile point to different wcfs::FileH"
);
error
err
;
err
=
mmap
->
remmap_blk
(
blk
);
...
...
@@ -57,8 +60,13 @@ static int zfile_remmap_blk_read(VMA *vma, BigFile *file, blk_t blk) {
static
void
zfile_munmap
(
VMA
*
vma
,
BigFile
*
file
)
{
wcfs
::
_Mapping
*
mmap
=
static_cast
<
wcfs
::
_Mapping
*>
(
vma
->
mmap_overlay_server
);
_ZBigFile
*
_zfile
=
container_of
(
file
,
_ZBigFile
,
__pyx_base
.
file
);
if
(
mmap
->
fileh
!=
_zfile
->
wfileh
)
panic
(
"BUG: zfile_remmap_blk_read: vma and _zfile point to different wcfs::FileH"
);
error
err
;
wcfs
::
_Mapping
*
mmap
=
static_cast
<
wcfs
::
_Mapping
*>
(
vma
->
mmap_overlay_server
);
err
=
mmap
->
unmap
();
if
(
err
!=
nil
)
...
...
wcfs/client/wcfs.cpp
View file @
2513bee7
...
...
@@ -46,6 +46,9 @@
//
// XXX locking -> explain atMu + slaves and refer to "Locking" in wcfs.go
//
// XXX link to bigfile/file_zodb.cpp to show how wcfs/client is used for
// ZBigFile on client side.
#include "wcfs_misc.h"
...
...
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