vfs: rename Fsync to Sync and implement Sync on Node and Handle

This commit is contained in:
Nick Craig-Wood
2017-11-20 12:46:23 +00:00
parent eb3415db50
commit b4083b4371
10 changed files with 40 additions and 10 deletions
+1 -1
View File
@@ -174,7 +174,7 @@ var _ fusefs.NodeFsyncer = (*Dir)(nil)
// Fsync the directory
func (d *Dir) Fsync(ctx context.Context, req *fuse.FsyncRequest) (err error) {
defer fs.Trace(d, "")("err=%v", &err)
err = d.Dir.Fsync()
err = d.Dir.Sync()
if err != nil {
return translateError(err)
}