- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for FcntlInt (0.04 seconds)
-
internal/disk/directio_unix.go
} // DisableDirectIO - disables directio mode. func DisableDirectIO(f *os.File) error { fd := f.Fd() flag, err := unix.FcntlInt(fd, unix.F_GETFL, 0) if err != nil { return err } flag &= ^(syscall.O_DIRECT) _, err = unix.FcntlInt(fd, unix.F_SETFL, flag) return err } // AlignedBlock - pass through to directio implementation. func AlignedBlock(blockSize int) []byte {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sat Jun 17 14:31:36 GMT 2023 - 1.6K bytes - Click Count (0) -
internal/disk/directio_darwin.go
return directio.OpenFile(filePath, flag, perm) } // DisableDirectIO - disables directio mode. func DisableDirectIO(f *os.File) error { fd := f.Fd() _, err := unix.FcntlInt(fd, unix.F_NOCACHE, 0) return err } // AlignedBlock - pass through to directio implementation. func AlignedBlock(blockSize int) []byte { return directio.AlignedBlock(blockSize)
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sat Jun 17 14:31:36 GMT 2023 - 1.4K bytes - Click Count (0)