Fixed file writing.

geesefs-0-30-9
Aaron Jacobs 2015-09-09 21:45:28 +10:00
parent 64cbdfea9a
commit 27a921775e
1 changed files with 22 additions and 0 deletions

View File

@ -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) {