Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

mount: Make fsync be a no-op for direectories too #1045

Nick Craig-Wood8a11da4e14d8
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
+}