From 8a11da4e14d89ef860a10dc77bdfe115f5cbafb2 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Thu, 2 Feb 2017 21:30:32 +0000 Subject: [PATCH] mount: Make fsync be a no-op for direectories too #1045 --- cmd/mount/dir.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cmd/mount/dir.go b/cmd/mount/dir.go index e94253ef1..5870751cd 100644 --- a/cmd/mount/dir.go +++ b/cmd/mount/dir.go @@ -420,3 +420,13 @@ func (d *Dir) Rename(ctx context.Context, req *fuse.RenameRequest, newDir fusefs fs.ErrorLog(newPath, "Dir.Rename renamed from %q", oldPath) return nil } + +// Check interface satisfied +var _ fusefs.NodeFsyncer = (*Dir)(nil) + +// Fsync the directory +// +// Note that we don't do anything except return OK +func (d *Dir) Fsync(ctx context.Context, req *fuse.FsyncRequest) error { + return nil +}