mount: Make fsync be a no-op rather than returning an error - fixes #1045

This commit is contained in:
Nick Craig-Wood
2017-01-29 11:29:42 +00:00
parent 390f3cf35b
commit 29c6e22024
2 changed files with 26 additions and 0 deletions
+10
View File
@@ -144,3 +144,13 @@ func (f *File) Open(ctx context.Context, req *fuse.OpenRequest, resp *fuse.OpenR
*/
return nil, errors.New("can't figure out how to open")
}
// Check interface satisfied
var _ fusefs.NodeFsyncer = (*File)(nil)
// Fsync the file
//
// Note that we don't do anything except return OK
func (f *File) Fsync(ctx context.Context, req *fuse.FsyncRequest) error {
return nil
}