Documentation ¶
Index ¶
- func AlignedBlock(BlockSize int) []byte
- func DisableDirectIO(f *os.File) error
- func FadviseDontNeed(f *os.File) error
- func Fdatasync(f *os.File) error
- func GetHealthInfo(ctx context.Context, drive, fsPath string) (madmin.DiskLatency, madmin.DiskThroughput, error)
- func IsRootDisk(diskPath string, rootDisk string) (bool, error)
- func OpenFileDirectIO(filePath string, flag int, perm os.FileMode) (*os.File, error)
- func SameDisk(disk1, disk2 string) (bool, error)
- type Info
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AlignedBlock ¶
AlignedBlock - pass through to directio implementation.
func DisableDirectIO ¶
DisableDirectIO - disables directio mode.
func GetHealthInfo ¶
func GetHealthInfo(ctx context.Context, drive, fsPath string) (madmin.DiskLatency, madmin.DiskThroughput, error)
GetHealthInfo about the drive
func IsRootDisk ¶
IsRootDisk returns if diskPath belongs to root-disk, i.e the disk mounted at "/"
func OpenFileDirectIO ¶
OpenFileDirectIO - bypass kernel cache.
Types ¶
Click to show internal directories.
Click to hide internal directories.