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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
d58c048b
Commit
d58c048b
authored
Dec 18, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
260b1d29
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
bigfile/_file_zodb.pyx
bigfile/_file_zodb.pyx
+1
-1
bigfile/file_zodb.cpp
bigfile/file_zodb.cpp
+5
-4
No files found.
bigfile/_file_zodb.pyx
View file @
d58c048b
...
@@ -96,7 +96,7 @@ cdef public class _ZBigFile(BigFile) [object _ZBigFile, type _ZBigFile_Type]:
...
@@ -96,7 +96,7 @@ cdef public class _ZBigFile(BigFile) [object _ZBigFile, type _ZBigFile_Type]:
# functions that we give to virtmem bigfile_ops .mmap*
# functions that we give to virtmem bigfile_ops .mmap*
cdef
extern
from
*
nogil
:
cdef
extern
from
*
nogil
:
pas
s
const
bigfile_ops
ZBigFile_mmap_op
s
...
...
bigfile/file_zodb.cpp
View file @
d58c048b
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
// See https://www.nexedi.com/licensing for rationale and options.
// See https://www.nexedi.com/licensing for rationale and options.
// File file_zodb.cpp provides blkmmapper functions for _ZBigFile.
// File file_zodb.cpp provides blkmmapper functions for _ZBigFile.
// MMapping is implemented via WCFS.
#include "wcfs/internal/wcfs.h"
#include "wcfs/internal/wcfs.h"
#include "wendelin/bigfile/file.h"
#include "wendelin/bigfile/file.h"
...
@@ -25,7 +26,7 @@
...
@@ -25,7 +26,7 @@
#include "bigfile/_bigfile.h"
#include "bigfile/_bigfile.h"
#include "bigfile/_file_zodb.h"
#include "bigfile/_file_zodb.h"
void
*
zfile_mmap_setup_read
(
VMA
*
vma
,
BigFile
*
file
,
blk_t
blk
,
size_t
blklen
)
{
static
void
*
zfile_mmap_setup_read
(
VMA
*
vma
,
BigFile
*
file
,
blk_t
blk
,
size_t
blklen
)
{
//_ZBigFile* _zfile = static_cast<_ZBigFile*>(file);
//_ZBigFile* _zfile = static_cast<_ZBigFile*>(file);
_ZBigFile
*
_zfile
=
NULL
;
// XXX
_ZBigFile
*
_zfile
=
NULL
;
// XXX
...
@@ -47,7 +48,7 @@ void* zfile_mmap_setup_read(VMA *vma, BigFile *file, blk_t blk, size_t blklen) {
...
@@ -47,7 +48,7 @@ void* zfile_mmap_setup_read(VMA *vma, BigFile *file, blk_t blk, size_t blklen) {
return
(
void
*
)
vma
->
addr_start
;
// XXX kill if we set vma->addr_*
return
(
void
*
)
vma
->
addr_start
;
// XXX kill if we set vma->addr_*
}
}
int
zfile_remmap_blk_read
(
VMA
*
vma
,
BigFile
*
file
,
blk_t
blk
)
{
static
int
zfile_remmap_blk_read
(
VMA
*
vma
,
BigFile
*
file
,
blk_t
blk
)
{
wcfs
::
_Mapping
*
mmap
=
static_cast
<
wcfs
::
_Mapping
*>
(
vma
->
mmap_overlay_server
);
wcfs
::
_Mapping
*
mmap
=
static_cast
<
wcfs
::
_Mapping
*>
(
vma
->
mmap_overlay_server
);
// XXX use file?
// XXX use file?
...
@@ -56,7 +57,7 @@ int zfile_remmap_blk_read(VMA *vma, BigFile *file, blk_t blk) {
...
@@ -56,7 +57,7 @@ int zfile_remmap_blk_read(VMA *vma, BigFile *file, blk_t blk) {
}
}
void
zfile_munmap
(
VMA
*
vma
,
BigFile
*
file
)
{
static
void
zfile_munmap
(
VMA
*
vma
,
BigFile
*
file
)
{
// NOTE taking 1 ref back from vma->mmap_overlay_server
// NOTE taking 1 ref back from vma->mmap_overlay_server
wcfs
::
Mapping
mmap
=
adoptref
(
static_cast
<
wcfs
::
_Mapping
*>
(
vma
->
mmap_overlay_server
));
wcfs
::
Mapping
mmap
=
adoptref
(
static_cast
<
wcfs
::
_Mapping
*>
(
vma
->
mmap_overlay_server
));
vma
->
mmap_overlay_server
=
NULL
;
vma
->
mmap_overlay_server
=
NULL
;
...
@@ -68,7 +69,7 @@ void zfile_munmap(VMA *vma, BigFile *file) {
...
@@ -68,7 +69,7 @@ void zfile_munmap(VMA *vma, BigFile *file) {
//const VirtMMapper zfile_mmapper = {
//const VirtMMapper zfile_mmapper = {
const
bigfile_ops
zf
ile_mmap_ops
=
{
const
bigfile_ops
ZBigF
ile_mmap_ops
=
{
.
mmap_setup_read
=
zfile_mmap_setup_read
,
.
mmap_setup_read
=
zfile_mmap_setup_read
,
.
remmap_blk_read
=
zfile_remmap_blk_read
,
.
remmap_blk_read
=
zfile_remmap_blk_read
,
.
munmap
=
zfile_munmap
,
.
munmap
=
zfile_munmap
,
...
...
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