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

Allow getattr after setattr to fail.

parent 466d67f1
......@@ -210,9 +210,11 @@ func (me *FileSystemConnector) SetAttr(header *InHeader, input *SetAttrIn) (out
// Must call GetAttr(); the filesystem may override some of
// the changes we effect here.
fi, code := node.fsInode.GetAttr(f, &header.Context)
if code.Ok() {
out = &AttrOut{}
out.Attr.Ino = header.NodeId
node.mount.fileInfoToAttr(fi, out)
}
return out, 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