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
8b0ad5b4
Commit
8b0ad5b4
authored
Jan 15, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
b6c4446b
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
19 additions
and
19 deletions
+19
-19
bigfile/_file_zodb.pyx
bigfile/_file_zodb.pyx
+2
-2
bigfile/file_zodb.cpp
bigfile/file_zodb.cpp
+1
-1
setup.py
setup.py
+8
-8
wcfs/__init__.py
wcfs/__init__.py
+1
-1
wcfs/client/.gitignore
wcfs/client/.gitignore
+1
-0
wcfs/client/__init__.py
wcfs/client/__init__.py
+0
-0
wcfs/client/_wcfs.pxd
wcfs/client/_wcfs.pxd
+5
-5
wcfs/client/_wcfs.pyx
wcfs/client/_wcfs.pyx
+0
-0
wcfs/client/wcfs.cpp
wcfs/client/wcfs.cpp
+0
-0
wcfs/client/wcfs.h
wcfs/client/wcfs.h
+0
-0
wcfs/client/wcfs_misc.cpp
wcfs/client/wcfs_misc.cpp
+0
-0
wcfs/client/wcfs_misc.h
wcfs/client/wcfs_misc.h
+0
-0
wcfs/client/wcfs_watchlink.cpp
wcfs/client/wcfs_watchlink.cpp
+0
-0
wcfs/client/wcfs_watchlink.h
wcfs/client/wcfs_watchlink.h
+0
-0
wcfs/internal/.gitignore
wcfs/internal/.gitignore
+0
-1
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+1
-1
No files found.
bigfile/_file_zodb.pyx
View file @
8b0ad5b4
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
from
__future__
import
print_function
,
absolute_import
from
__future__
import
print_function
,
absolute_import
cdef
extern
from
"wcfs/
internal
/wcfs.h"
:
cdef
extern
from
"wcfs/
client
/wcfs.h"
:
pass
pass
cdef
extern
from
"bigfile/_bigfile.h"
:
cdef
extern
from
"bigfile/_bigfile.h"
:
...
@@ -46,7 +46,7 @@ cdef extern from * nogil:
...
@@ -46,7 +46,7 @@ cdef extern from * nogil:
const
bigfile_ops
ZBigFile_mmap_ops
const
bigfile_ops
ZBigFile_mmap_ops
import
wcfs
as
pywcfs
import
wcfs
as
pywcfs
from
wcfs.
internal
cimport
_wcfs
as
wcfs
from
wcfs.
client
cimport
_wcfs
as
wcfs
from
golang
cimport
nil
from
golang
cimport
nil
from
cpython
cimport
PyCapsule_New
from
cpython
cimport
PyCapsule_New
...
...
bigfile/file_zodb.cpp
View file @
8b0ad5b4
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
// File file_zodb.cpp provides blkmmapper functions for _ZBigFile.
// File file_zodb.cpp provides blkmmapper functions for _ZBigFile.
// MMapping is implemented via WCFS.
// MMapping is implemented via WCFS.
#include "wcfs/
internal
/wcfs.h"
#include "wcfs/
client
/wcfs.h"
#include "wendelin/bigfile/file.h"
#include "wendelin/bigfile/file.h"
#include "wendelin/bigfile/virtmem.h"
#include "wendelin/bigfile/virtmem.h"
#include "bigfile/_bigfile.h"
#include "bigfile/_bigfile.h"
...
...
setup.py
View file @
8b0ad5b4
...
@@ -266,10 +266,10 @@ setup(
...
@@ -266,10 +266,10 @@ setup(
define_macros
=
[(
'_GNU_SOURCE'
,
None
),
(
'BUILDING_LIBVIRTMEM'
,
None
)],
define_macros
=
[(
'_GNU_SOURCE'
,
None
),
(
'BUILDING_LIBVIRTMEM'
,
None
)],
language
=
'c'
),
language
=
'c'
),
DSO
(
'wendelin.wcfs.
internal
.libwcfs'
,
DSO
(
'wendelin.wcfs.
client
.libwcfs'
,
[
'wcfs/
internal
/wcfs.cpp'
,
[
'wcfs/
client
/wcfs.cpp'
,
'wcfs/
internal
/wcfs_watchlink.cpp'
,
'wcfs/
client
/wcfs_watchlink.cpp'
,
'wcfs/
internal
/wcfs_misc.cpp'
],
'wcfs/
client
/wcfs_misc.cpp'
],
dsos
=
[
'wendelin.bigfile.libvirtmem'
])],
dsos
=
[
'wendelin.bigfile.libvirtmem'
])],
ext_modules
=
[
ext_modules
=
[
...
@@ -282,11 +282,11 @@ setup(
...
@@ -282,11 +282,11 @@ setup(
PyGoExt
(
'wendelin.bigfile._file_zodb'
,
PyGoExt
(
'wendelin.bigfile._file_zodb'
,
[
'bigfile/_file_zodb.pyx'
,
[
'bigfile/_file_zodb.pyx'
,
'bigfile/file_zodb.cpp'
],
'bigfile/file_zodb.cpp'
],
dsos
=
[
'wendelin.wcfs.
internal
.libwcfs'
]),
dsos
=
[
'wendelin.wcfs.
client
.libwcfs'
]),
PyGoExt
(
'wendelin.wcfs.
internal
._wcfs'
,
PyGoExt
(
'wendelin.wcfs.
client
._wcfs'
,
[
'wcfs/
internal
/_wcfs.pyx'
],
[
'wcfs/
client
/_wcfs.pyx'
],
dsos
=
[
'wendelin.wcfs.
internal
.libwcfs'
]),
dsos
=
[
'wendelin.wcfs.
client
.libwcfs'
]),
PyGoExt
(
'wendelin.wcfs.internal.wcfs_test'
,
PyGoExt
(
'wendelin.wcfs.internal.wcfs_test'
,
[
'wcfs/internal/wcfs_test.pyx'
]),
[
'wcfs/internal/wcfs_test.pyx'
]),
...
...
wcfs/__init__.py
View file @
8b0ad5b4
...
@@ -58,7 +58,7 @@ from persistent import Persistent
...
@@ -58,7 +58,7 @@ from persistent import Persistent
from
ZODB.FileStorage
import
FileStorage
from
ZODB.FileStorage
import
FileStorage
from
zodbtools.util
import
ashex
as
h
from
zodbtools.util
import
ashex
as
h
from
.
internal
._wcfs
import
\
from
.
client
._wcfs
import
\
PyWCFS
as
_WCFS
,
\
PyWCFS
as
_WCFS
,
\
PyWatchLink
as
WatchLink
,
\
PyWatchLink
as
WatchLink
,
\
PyPinReq
as
PinReq
\
PyPinReq
as
PinReq
\
...
...
wcfs/client/.gitignore
0 → 100644
View file @
8b0ad5b4
/_wcfs.cpp
wcfs/client/__init__.py
0 → 100644
View file @
8b0ad5b4
wcfs/
internal
/_wcfs.pxd
→
wcfs/
client
/_wcfs.pxd
View file @
8b0ad5b4
...
@@ -36,20 +36,20 @@ from libcpp.vector cimport vector
...
@@ -36,20 +36,20 @@ from libcpp.vector cimport vector
# XXX -> pygolang
# XXX -> pygolang
cdef
extern
from
"wcfs/
internal
/wcfs_misc.h"
namespace
"io"
nogil
:
cdef
extern
from
"wcfs/
client
/wcfs_misc.h"
namespace
"io"
nogil
:
error
EOF
"io::EOF_"
error
EOF
"io::EOF_"
error
ErrUnexpectedEOF
error
ErrUnexpectedEOF
cdef
extern
from
"wcfs/
internal
/wcfs_misc.h"
namespace
"zodb"
nogil
:
cdef
extern
from
"wcfs/
client
/wcfs_misc.h"
namespace
"zodb"
nogil
:
ctypedef
uint64_t
Tid
ctypedef
uint64_t
Tid
ctypedef
uint64_t
Oid
ctypedef
uint64_t
Oid
cdef
extern
from
"wcfs/
internal
/wcfs_misc.h"
namespace
"wcfs"
nogil
:
cdef
extern
from
"wcfs/
client
/wcfs_misc.h"
namespace
"wcfs"
nogil
:
const
Tid
TidHead
const
Tid
TidHead
# pyx/nogil description for C++ classes
# pyx/nogil description for C++ classes
cdef
extern
from
"wcfs/
internal
/wcfs_watchlink.h"
namespace
"wcfs"
nogil
:
cdef
extern
from
"wcfs/
client
/wcfs_watchlink.h"
namespace
"wcfs"
nogil
:
cppclass
_WatchLink
:
cppclass
_WatchLink
:
error
close
()
error
close
()
error
closeWrite
()
error
closeWrite
()
...
@@ -80,7 +80,7 @@ cdef extern from "wcfs/internal/wcfs_watchlink.h" namespace "wcfs" nogil:
...
@@ -80,7 +80,7 @@ cdef extern from "wcfs/internal/wcfs_watchlink.h" namespace "wcfs" nogil:
error
_twlinkwrite
(
WatchLink
wlink
,
const
string
&
pkt
)
error
_twlinkwrite
(
WatchLink
wlink
,
const
string
&
pkt
)
cdef
extern
from
"wcfs/
internal
/wcfs.h"
namespace
"wcfs"
nogil
:
cdef
extern
from
"wcfs/
client
/wcfs.h"
namespace
"wcfs"
nogil
:
cppclass
WCFS
:
cppclass
WCFS
:
string
mountpoint
string
mountpoint
...
...
wcfs/
internal
/_wcfs.pyx
→
wcfs/
client
/_wcfs.pyx
View file @
8b0ad5b4
File moved
wcfs/
internal
/wcfs.cpp
→
wcfs/
client
/wcfs.cpp
View file @
8b0ad5b4
File moved
wcfs/
internal
/wcfs.h
→
wcfs/
client
/wcfs.h
View file @
8b0ad5b4
File moved
wcfs/
internal
/wcfs_misc.cpp
→
wcfs/
client
/wcfs_misc.cpp
View file @
8b0ad5b4
File moved
wcfs/
internal
/wcfs_misc.h
→
wcfs/
client
/wcfs_misc.h
View file @
8b0ad5b4
File moved
wcfs/
internal
/wcfs_watchlink.cpp
→
wcfs/
client
/wcfs_watchlink.cpp
View file @
8b0ad5b4
File moved
wcfs/
internal
/wcfs_watchlink.h
→
wcfs/
client
/wcfs_watchlink.h
View file @
8b0ad5b4
File moved
wcfs/internal/.gitignore
View file @
8b0ad5b4
/io.c
/io.c
/mm.c
/mm.c
/_wcfs.cpp
/wcfs_test.cpp
/wcfs_test.cpp
wcfs/wcfs_test.py
View file @
8b0ad5b4
...
@@ -51,8 +51,8 @@ from zodbtools.util import ashex as h, fromhex
...
@@ -51,8 +51,8 @@ from zodbtools.util import ashex as h, fromhex
import
pytest
;
xfail
=
pytest
.
mark
.
xfail
import
pytest
;
xfail
=
pytest
.
mark
.
xfail
from
pytest
import
raises
,
fail
from
pytest
import
raises
,
fail
from
.internal
import
io
,
mm
from
.internal
import
io
,
mm
from
.internal._wcfs
import
_tpywlinkwrite
as
_twlinkwrite
from
.internal.wcfs_test
import
_tDB
,
read_nogil
,
install_sigbus_trap
,
fadvise_dontneed
from
.internal.wcfs_test
import
_tDB
,
read_nogil
,
install_sigbus_trap
,
fadvise_dontneed
from
.client._wcfs
import
_tpywlinkwrite
as
_twlinkwrite
# setup:
# setup:
...
...
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