Commit 19ad26b9 authored by Kirill Smelkov's avatar Kirill Smelkov Committed by Han-Wen Nienhuys

nodefs: rawBridge.Lookup: No need to cast *fuse.Attr to *fuse.Attr

out.Attr is already of type fuse.Attr .
parent 1027673f
...@@ -100,8 +100,7 @@ func (c *rawBridge) Lookup(header *fuse.InHeader, name string, out *fuse.EntryOu ...@@ -100,8 +100,7 @@ func (c *rawBridge) Lookup(header *fuse.InHeader, name string, out *fuse.EntryOu
log.Printf("Lookup %q called on non-Directory node %d", name, header.NodeId) log.Printf("Lookup %q called on non-Directory node %d", name, header.NodeId)
return fuse.ENOTDIR return fuse.ENOTDIR
} }
outAttr := (*fuse.Attr)(&out.Attr) child, code := c.fsConn().internalLookup(&out.Attr, parent, name, header)
child, code := c.fsConn().internalLookup(outAttr, parent, name, header)
if code == fuse.ENOENT && parent.mount.negativeEntry(out) { if code == fuse.ENOENT && parent.mount.negativeEntry(out) {
return fuse.OK return fuse.OK
} }
......
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