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
eca92b6d
Commit
eca92b6d
authored
Dec 19, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
96fad146
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
wcfs/todo.dot
wcfs/todo.dot
+1
-1
wcfs/todo.svg
wcfs/todo.svg
+1
-1
wcfs/wcfs.go
wcfs/wcfs.go
+3
-4
No files found.
wcfs/todo.dot
View file @
eca92b6d
...
...
@@ -84,7 +84,7 @@ digraph {
headInv
[
label
=
"#blk ← head/inv."
]
ZODB_go_inv
[
label
=
"ZODB/go\ninvalidations"
]
fs1_go_inv
[
label
=
"fs1/go\ninvalidations"
]
fs1_go_inv
[
label
=
"fs1/go\ninvalidations"
,
style
=
filled
fillcolor
=
grey95
]
zeo_go_inv
[
label
=
"zeo/go\ninvalidations"
]
neo_go_inv
[
label
=
"neo/go\ninvalidations"
]
// Btree_read [label="BTree read", style=filled fillcolor=lightyellow]
...
...
wcfs/todo.svg
View file @
eca92b6d
...
...
@@ -224,7 +224,7 @@
<!-- fs1_go_inv -->
<g
id=
"node12"
class=
"node"
>
<title>
fs1_go_inv
</title>
<ellipse
fill=
"
none
"
stroke=
"#000000"
cx=
"60.8112"
cy=
"-98.8701"
rx=
"60.623"
ry=
"26.7407"
/>
<ellipse
fill=
"
#f2f2f2
"
stroke=
"#000000"
cx=
"60.8112"
cy=
"-98.8701"
rx=
"60.623"
ry=
"26.7407"
/>
<text
text-anchor=
"middle"
x=
"60.8112"
y=
"-102.6701"
font-family=
"Times,serif"
font-size=
"14.00"
fill=
"#000000"
>
fs1/go
</text>
<text
text-anchor=
"middle"
x=
"60.8112"
y=
"-87.6701"
font-family=
"Times,serif"
font-size=
"14.00"
fill=
"#000000"
>
invalidations
</text>
</g>
...
...
wcfs/wcfs.go
View file @
eca92b6d
...
...
@@ -561,8 +561,7 @@ type blkLoadState struct {
/*
// XXX invalidation watcher
// XXX naming
func (sb *Super) main(ctx context.Context) error {
func (sb *Root) zwatch(ctx context.Context) error {
// XXX err ctx
// XXX unmount on error? -> always EIO?
...
...
@@ -581,7 +580,7 @@ func (sb *Super) main(ctx context.Context) error {
// zhandle1 handles 1 event from ZODB notification.
// XXX something is locked
func (sb *
Super
) zhandle1(zevent *zodb.NotifyEvent) {
func (sb *
Root
) zhandle1(zevent *zodb.NotifyEvent) {
toinvalidate = ... // [] of file/[]#blk
// zevent = (tid^, []oid)
...
...
@@ -618,7 +617,7 @@ func (sb *Super) zhandle1(zevent *zodb.NotifyEvent) {
// invalidateBlk invalidates 1 file block. XXX
// XXX see "4. for all file/blk to in invalidate we do"
func (f *file) invalidateBlk(ctx context.Context, blk int64) error {
fsconn := f.
super
().fsconn
fsconn := f.
root
().fsconn
off := blk*blksize
// try retrieve cache of current head/data[blk]
...
...
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