Commit ebdf939a authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

nodefs: getattr attr timeout.

parent 321434a7
...@@ -184,7 +184,6 @@ func (b *rawBridge) GetAttr(input *fuse.GetAttrIn, out *fuse.AttrOut) (code fuse ...@@ -184,7 +184,6 @@ func (b *rawBridge) GetAttr(input *fuse.GetAttrIn, out *fuse.AttrOut) (code fuse
n, fEntry := b.inode(input.NodeId, input.Fh()) n, fEntry := b.inode(input.NodeId, input.Fh())
f := fEntry.file f := fEntry.file
// nosubmit - FATTR_FH vs FUSE_GETATTR_FH ?
if input.Flags()&fuse.FUSE_GETATTR_FH == 0 { if input.Flags()&fuse.FUSE_GETATTR_FH == 0 {
f = nil f = nil
} }
...@@ -197,7 +196,9 @@ func (b *rawBridge) GetAttr(input *fuse.GetAttrIn, out *fuse.AttrOut) (code fuse ...@@ -197,7 +196,9 @@ func (b *rawBridge) GetAttr(input *fuse.GetAttrIn, out *fuse.AttrOut) (code fuse
out.Nlink = 1 out.Nlink = 1
} }
// NOSUBMIT attr timeout if b.options.AttrTimeout != nil {
out.SetTimeout(*b.options.AttrTimeout)
}
return code return code
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment