Commit da3ee980 authored by Aaron Jacobs's avatar Aaron Jacobs

statFS.StatFS

parent b316df06
...@@ -103,19 +103,14 @@ func (fs *statFS) MostRecentWriteSize() int { ...@@ -103,19 +103,14 @@ func (fs *statFS) MostRecentWriteSize() int {
// FileSystem methods // FileSystem methods
//////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////
func (fs *statFS) LookUpInode( // LOCKS_EXCLUDED(fs.mu)
func (fs *statFS) StatFS(
ctx context.Context, ctx context.Context,
op *fuseops.LookUpInodeOp) (err error) { op *fuseops.StatFSOp) (err error) {
// Pretend that every name exists as a child of the root inode, and is a fs.mu.Lock()
// file. defer fs.mu.Unlock()
if op.Parent != fuseops.RootInodeID {
err = fuse.ENOENT
return
}
op.Entry.Child = childInodeID
op.Entry.Attributes = fileAttrs()
*op = fs.cannedResponse
return return
} }
......
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