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
f9e18c2b
Commit
f9e18c2b
authored
Mar 23, 2019
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nodefs: only set default timeout if Entry/Attr does not specify a timeout
parent
39ac4936
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
nodefs/bridge.go
nodefs/bridge.go
+4
-4
No files found.
nodefs/bridge.go
View file @
f9e18c2b
...
...
@@ -137,16 +137,16 @@ func (b *rawBridge) addNewChild(parent *Inode, name string, child *Inode, file F
}
func
(
b
*
rawBridge
)
setEntryOutTimeout
(
out
*
fuse
.
EntryOut
)
{
if
b
.
options
.
AttrTimeout
!=
nil
{
if
b
.
options
.
AttrTimeout
!=
nil
&&
out
.
AttrTimeout
()
==
0
{
out
.
SetAttrTimeout
(
*
b
.
options
.
AttrTimeout
)
}
if
b
.
options
.
EntryTimeout
!=
nil
{
if
b
.
options
.
EntryTimeout
!=
nil
&&
out
.
EntryTimeout
()
==
0
{
out
.
SetEntryTimeout
(
*
b
.
options
.
EntryTimeout
)
}
}
func
(
b
*
rawBridge
)
setAttrTimeout
(
out
*
fuse
.
AttrOut
)
{
if
b
.
options
.
AttrTimeout
!=
nil
{
if
b
.
options
.
AttrTimeout
!=
nil
&&
out
.
Timeout
()
==
0
{
out
.
SetTimeout
(
*
b
.
options
.
AttrTimeout
)
}
}
...
...
@@ -216,7 +216,7 @@ func (b *rawBridge) Lookup(cancel <-chan struct{}, header *fuse.InHeader, name s
child
,
errno
:=
parent
.
dirOps
()
.
Lookup
(
&
fuse
.
Context
{
Caller
:
header
.
Caller
,
Cancel
:
cancel
},
name
,
out
)
if
errno
!=
0
{
if
b
.
options
.
NegativeTimeout
!=
nil
{
if
b
.
options
.
NegativeTimeout
!=
nil
&&
out
.
EntryTimeout
()
==
0
{
out
.
SetEntryTimeout
(
*
b
.
options
.
NegativeTimeout
)
}
return
errnoToStatus
(
errno
)
...
...
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