aboutsummaryrefslogtreecommitdiff
path: root/bolt_linux.go
blob: 7e3e5398f3ba083406c3a5c56be80ce8b17a9cee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
package bolt

import (
	"os"
	"syscall"
)

var odirect = syscall.O_DIRECT

// fdatasync flushes written data to a file descriptor.
func fdatasync(f *os.File) error {
	return syscall.Fdatasync(int(f.Fd()))
}