Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go-fuse
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
Levin Zimmermann
go-fuse
Commits
74f62108
Commit
74f62108
authored
Feb 22, 2019
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nodefs: setEntryOutTimeout()
parent
69ea907f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
nodefs/bridge.go
nodefs/bridge.go
+6
-8
No files found.
nodefs/bridge.go
View file @
74f62108
...
@@ -100,14 +100,17 @@ func (b *rawBridge) Lookup(header *fuse.InHeader, name string, out *fuse.EntryOu
...
@@ -100,14 +100,17 @@ func (b *rawBridge) Lookup(header *fuse.InHeader, name string, out *fuse.EntryOu
b
.
mu
.
Unlock
()
b
.
mu
.
Unlock
()
unlockNodes
(
parent
,
child
)
unlockNodes
(
parent
,
child
)
b
.
setEntryOutTimeout
(
out
)
return
fuse
.
OK
}
func
(
b
*
rawBridge
)
setEntryOutTimeout
(
out
*
fuse
.
EntryOut
)
{
if
b
.
options
.
AttrTimeout
!=
nil
{
if
b
.
options
.
AttrTimeout
!=
nil
{
out
.
SetAttrTimeout
(
*
b
.
options
.
AttrTimeout
)
out
.
SetAttrTimeout
(
*
b
.
options
.
AttrTimeout
)
}
}
if
b
.
options
.
EntryTimeout
!=
nil
{
if
b
.
options
.
EntryTimeout
!=
nil
{
out
.
SetEntryTimeout
(
*
b
.
options
.
EntryTimeout
)
out
.
SetEntryTimeout
(
*
b
.
options
.
EntryTimeout
)
}
}
return
fuse
.
OK
}
}
// registerInode sets an nodeID in the child. Must have bridge.mu and
// registerInode sets an nodeID in the child. Must have bridge.mu and
...
@@ -152,12 +155,7 @@ func (b *rawBridge) Create(input *fuse.CreateIn, name string, out *fuse.CreateOu
...
@@ -152,12 +155,7 @@ func (b *rawBridge) Create(input *fuse.CreateIn, name string, out *fuse.CreateOu
b
.
mu
.
Unlock
()
b
.
mu
.
Unlock
()
unlockNode2
(
parent
,
child
)
unlockNode2
(
parent
,
child
)
if
b
.
options
.
AttrTimeout
!=
nil
{
b
.
setEntryOutTimeout
(
out
)
out
.
SetAttrTimeout
(
*
b
.
options
.
AttrTimeout
)
}
if
b
.
options
.
EntryTimeout
!=
nil
{
out
.
SetEntryTimeout
(
*
b
.
options
.
EntryTimeout
)
}
out
.
OpenFlags
=
flags
out
.
OpenFlags
=
flags
...
...
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