Commit 27a92177 authored by Aaron Jacobs's avatar Aaron Jacobs

Fixed file writing.

parent 64cbdfea
......@@ -114,6 +114,21 @@ func (fs *statFS) StatFS(
return
}
func (fs *statFS) LookUpInode(
ctx context.Context,
op *fuseops.LookUpInodeOp) (err error) {
// Only the root has children.
if op.Parent != fuseops.RootInodeID {
err = fuse.ENOENT
return
}
op.Entry.Child = childInodeID
op.Entry.Attributes = fileAttrs()
return
}
func (fs *statFS) GetInodeAttributes(
ctx context.Context,
op *fuseops.GetInodeAttributesOp) (err error) {
......@@ -131,6 +146,13 @@ func (fs *statFS) GetInodeAttributes(
return
}
func (fs *statFS) SetInodeAttributes(
ctx context.Context,
op *fuseops.SetInodeAttributesOp) (err error) {
// Ignore calls to truncate existing files when opening.
return
}
func (fs *statFS) OpenFile(
ctx context.Context,
op *fuseops.OpenFileOp) (err error) {
......
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