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
6c37f3b3
Commit
6c37f3b3
authored
Jul 19, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
785acadf
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
1 deletion
+43
-1
wcfs/btree.go
wcfs/btree.go
+1
-1
wcfs/btree_test.go
wcfs/btree_test.go
+27
-0
wcfs/wcfs.go
wcfs/wcfs.go
+10
-0
wcfs/zodb.go
wcfs/zodb.go
+3
-0
wcfs/zodbpy.go
wcfs/zodbpy.go
+2
-0
No files found.
wcfs/btree.go
View file @
6c37f3b3
...
...
@@ -40,7 +40,7 @@ type ZBucket struct {
next
*
ZBucket
// the bucket with the next-larger keys
keys
[]
KEY
// 'len' keys, in increasing order
values
[]
interface
{}
// 'len' corresponding values
XXX merge k/v ?
values
[]
interface
{}
// 'len' corresponding values
}
// zBTreeItem mimics BTreeItem from btree/py.
...
...
wcfs/btree_test.go
0 → 100644
View file @
6c37f3b3
// Copyright (C) 2018 Nexedi SA and Contributors.
// Kirill Smelkov <kirr@nexedi.com>
//
// This program is free software: you can Use, Study, Modify and Redistribute
// it under the terms of the GNU General Public License version 3, or (at your
// option) any later version, as published by the Free Software Foundation.
//
// You can also Link and Combine this program with other software covered by
// the terms of any of the Free Software licenses or any of the Open Source
// Initiative approved licenses and Convey the resulting work. Corresponding
// source of such a combination shall include the source code for all other
// software used.
//
// This program is distributed WITHOUT ANY WARRANTY; without even the implied
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//
// See COPYING file for full licensing terms.
// See https://www.nexedi.com/licensing for rationale and options.
package
main
import
(
//"testing"
)
// TODO
wcfs/wcfs.go
View file @
6c37f3b3
...
...
@@ -241,6 +241,12 @@ package main
// link above), but better we have proper FUSE flag for filesystem server to
// tell the kernel it is fully responsible for invalidating pagecache.
// TODO implementation organization.
// - 1 ZODB connection per 1 bigfile (each bigfile can be at its different @at,
// because invalidations for different bigfiles can be processed with different
// timings depending on clients). No harm here as different bigfiles use
// completely different ZODB BTree and data objects.
import
(
"context"
"flag"
...
...
@@ -361,6 +367,10 @@ func (br *BigFileRoot) Mkdir(name string, mode uint32, _ *fuse.Context) (*nodefs
ctx
:=
context
.
Background
()
// XXX ok?
_
=
ctx
return
nil
,
fuse
.
ENOSYS
// XXX temp
// xbf, err := zconn.Get(ctx, oid)
// check err
// check if xbf.(*ZBigFile)
/* XXX kill
buf, _, err := br.zstor.Load(ctx, zodb.Xid{Oid: oid, At: zodb.TidMax}) // FIXME At, use serial
if err != nil {
...
...
wcfs/zodb.go
View file @
6c37f3b3
...
...
@@ -23,6 +23,9 @@ import (
)
// Object is the interface that every in-RAM object representing any ZODB object implements.
//
// It is analog to Persistent in ZODB.
// XXX rename -> Persistent?
type
Object
interface
{
PJar
()
*
Connection
// Connection this in-RAM object is part of.
POid
()
zodb
.
Oid
// object ID in the database.
...
...
wcfs/zodbpy.go
View file @
6c37f3b3
...
...
@@ -25,6 +25,8 @@ import (
)
// PyObject is the interface that every in-RAM object representing Python ZODB object implements.
//
// XXX rename -> PyPersistent?
type
PyObject
interface
{
Object
...
...
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