mirror of
https://github.com/pgsty/minio.git
synced 2026-07-24 06:26:17 +03:00
optimization use small blocks up to 64KB (#17107)
This commit is contained in:
@@ -24,6 +24,9 @@ import (
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
// ODirectPlatform indicates if the platform supports O_DIRECT
|
||||
const ODirectPlatform = true
|
||||
|
||||
// OpenFileDirectIO - bypass kernel cache.
|
||||
func OpenFileDirectIO(filePath string, flag int, perm os.FileMode) (*os.File, error) {
|
||||
return directio.OpenFile(filePath, flag, perm)
|
||||
|
||||
Reference in New Issue
Block a user