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
7c2e8281
Commit
7c2e8281
authored
Apr 05, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
9b5b068c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
wcfs/wcfs.go
wcfs/wcfs.go
+5
-0
No files found.
wcfs/wcfs.go
View file @
7c2e8281
...
@@ -2064,6 +2064,10 @@ func (root *Root) lookup(name string, fctx *fuse.Context) (_ *Head, err error) {
...
@@ -2064,6 +2064,10 @@ func (root *Root) lookup(name string, fctx *fuse.Context) (_ *Head, err error) {
}
}
revDir
=
&
Head
{
revDir
=
&
Head
{
// XXX how to test forgets:
// echo 2 >/proc/sys/vm/drop_caches (root)
// mount -oremount $mntpt (root ?)
// notify invalidate dentry from inside fs
fsNode
:
newFSNode
(
&
fsOptions
{
Sticky
:
false
}),
// XXX + Head.OnForget() -> del root.revTab[]
fsNode
:
newFSNode
(
&
fsOptions
{
Sticky
:
false
}),
// XXX + Head.OnForget() -> del root.revTab[]
rev
:
rev
,
rev
:
rev
,
zconn
:
zconnRev
,
// XXX + Head.OnForget() -> release zconn (= abort zconn.txnCtx)
zconn
:
zconnRev
,
// XXX + Head.OnForget() -> release zconn (= abort zconn.txnCtx)
...
@@ -2475,6 +2479,7 @@ func _main() (err error) {
...
@@ -2475,6 +2479,7 @@ func _main() (err error) {
}
}
// wait for unmount
// wait for unmount
// XXX the kernel does not sentd FORGETs on unmount - release left node resources ourselves?
<-
serveCtx
.
Done
()
<-
serveCtx
.
Done
()
log
.
Infof
(
"stop %q %q"
,
mntpt
,
zurl
)
log
.
Infof
(
"stop %q %q"
,
mntpt
,
zurl
)
return
nil
// XXX serveErr | zwatchErr ?
return
nil
// XXX serveErr | zwatchErr ?
...
...
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