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
56ee365c
Commit
56ee365c
authored
Jun 06, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
2c3deaab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
wcfs/wcfs.go
wcfs/wcfs.go
+6
-0
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+3
-1
No files found.
wcfs/wcfs.go
View file @
56ee365c
...
...
@@ -1175,6 +1175,8 @@ func (f *BigFile) updateWatchers(ctx context.Context, blk int64, treepath []btre
return
}
fmt
.
Printf
(
"S: read -> update watchers (#%d)
\n
"
,
len
(
f
.
watches
))
// update δFtail index
bfdir
:=
f
.
head
.
bfdir
bfdir
.
δFmu
.
Lock
()
// XXX locking correct? XXX -> better push down?
...
...
@@ -1201,6 +1203,8 @@ func (f *BigFile) updateWatchers(ctx context.Context, blk int64, treepath []btre
for
w
:=
range
f
.
watches
{
w
:=
w
fmt
.
Printf
(
"S: read -> update watchers: w @%s
\n
"
,
w
.
at
)
// XXX locking
// the block is already covered by @w.at database view
...
...
@@ -2007,6 +2011,8 @@ func (zh *_wcfs_Zhead) Open(flags uint32, fctx *fuse.Context) (nodefs.File, fuse
return
sk
.
File
(),
fuse
.
OK
}
// TODO -> enable/disable fuse debugging dynamically (by write to .wcfs/debug ?)
func
main
()
{
stdlog
.
SetPrefix
(
"wcfs: "
)
//log.CopyStandardLogTo("WARNING") // XXX -> "DEBUG" if -d ?
...
...
wcfs/wcfs_test.py
View file @
56ee365c
...
...
@@ -917,6 +917,7 @@ def test_wcfs():
# >>> XXX commit data to not yet accessed f part - nothing happens
"""
# >>> invalidation protocol
print('
\
n
\
n
inv. protocol
\
n
\
n
')
...
...
@@ -955,8 +956,9 @@ def test_wcfs():
for at in revv[1:]:
wl.watch(zf, at)
wl.close()
"""
print
()
print
(
'
\
n
\
n
\
n
\
n
WATCH+COMMIT
\
n
\
n
\
n
\
n
'
)
# watched + commit -> receive pin messages
wl
=
t
.
openwatch
()
...
...
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