aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/backend/disk_file_others.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/storage/backend/disk_file_others.go')
-rw-r--r--weed/storage/backend/disk_file_others.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/weed/storage/backend/disk_file_others.go b/weed/storage/backend/disk_file_others.go
new file mode 100644
index 000000000..08d29d217
--- /dev/null
+++ b/weed/storage/backend/disk_file_others.go
@@ -0,0 +1,9 @@
+//go:build !linux && !darwin
+// +build !linux,!darwin
+
+package backend
+
+// Using default sync operation
+func (df *DiskFile) Sync() error {
+ return df.File.Sync()
+}