package
0.0.0-20240420182116-ac96246ab101
Repository: https://github.com/f110/github-400-test.git
Documentation: pkg.go.dev

# Functions

AlignedBlock - pass through to directio implementation.
DisableDirectIO - disables directio mode.
FadviseDontNeed invalidates page-cache.
Fdatasync - fdatasync() is similar to fsync(), but does not flush modified metadata unless that metadata is needed in order to allow a subsequent data retrieval to be correctly handled.
GetDriveStats returns IO stats of the drive by its major:minor.
GetInfo returns total and free bytes available in a directory, e.g.
IsRootDisk returns if diskPath belongs to root-disk, i.e the disk mounted at "/".
OpenFileDirectIO - bypass kernel cache.
SameDisk reports whether di1 and di2 describe the same disk.

# Constants

ODirectPlatform indicates if the platform supports O_DIRECT.

# Structs

Info stat fs struct is container which holds following values Total - total size of the volume / disk Free - free size of the volume / disk Files - total inodes available Ffree - free inodes available FSType - file system type Major - major dev id Minor - minor dev id Devname - device name.
IOStats contains stats of a single drive.