aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/backend/disk_file_linux.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/storage/backend/disk_file_linux.go')
-rw-r--r--weed/storage/backend/disk_file_linux.go14
1 files changed, 0 insertions, 14 deletions
diff --git a/weed/storage/backend/disk_file_linux.go b/weed/storage/backend/disk_file_linux.go
deleted file mode 100644
index a38489dcf..000000000
--- a/weed/storage/backend/disk_file_linux.go
+++ /dev/null
@@ -1,14 +0,0 @@
-//go:build linux
-// +build linux
-
-package backend
-
-import (
- "syscall"
-)
-
-// Using Fdatasync to optimize file sync operation
-func (df *DiskFile) Sync() error {
- fd := df.File.Fd()
- return syscall.Fdatasync(int(fd))
-}