blob: a38489dcf2e6de567e003ad2ec9ffc78f9212496 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//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))
}
|