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
Kirill Smelkov
go-fuse
Commits
df38958b
Commit
df38958b
authored
Feb 22, 2019
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nodefs: setEntryOutTimeout()
parent
f93557e8
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 @
df38958b
...
...
@@ -100,14 +100,17 @@ func (b *rawBridge) Lookup(header *fuse.InHeader, name string, out *fuse.EntryOu
b
.
mu
.
Unlock
()
unlockNodes
(
parent
,
child
)
b
.
setEntryOutTimeout
(
out
)
return
fuse
.
OK
}
func
(
b
*
rawBridge
)
setEntryOutTimeout
(
out
*
fuse
.
EntryOut
)
{
if
b
.
options
.
AttrTimeout
!=
nil
{
out
.
SetAttrTimeout
(
*
b
.
options
.
AttrTimeout
)
}
if
b
.
options
.
EntryTimeout
!=
nil
{
out
.
SetEntryTimeout
(
*
b
.
options
.
EntryTimeout
)
}
return
fuse
.
OK
}
// 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
b
.
mu
.
Unlock
()
unlockNode2
(
parent
,
child
)
if
b
.
options
.
AttrTimeout
!=
nil
{
out
.
SetAttrTimeout
(
*
b
.
options
.
AttrTimeout
)
}
if
b
.
options
.
EntryTimeout
!=
nil
{
out
.
SetEntryTimeout
(
*
b
.
options
.
EntryTimeout
)
}
b
.
setEntryOutTimeout
(
out
)
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