Versions in this module Expand all Collapse all v1 v1.0.2 Mar 17, 2021 Changes in this version + var GetDiskFreeSpace = kernel32.NewProc("GetDiskFreeSpaceW") — windows/amd64 + var GetDiskFreeSpaceEx = kernel32.NewProc("GetDiskFreeSpaceExW") — windows/amd64 + var GetVolumeInformation = kernel32.NewProc("GetVolumeInformationW") — windows/amd64 + func AlignedBlock(BlockSize int) []byte + func DisableDirectIO(f *os.File) error + func Fdatasync(f *os.File) error + func GetHealthInfo(ctx context.Context, drive, fsPath string) (Latency, Throughput, 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 struct + FSType string + Ffree uint64 + Files uint64 + Free uint64 + Total uint64 + Used uint64 + func GetInfo(path string) (info Info, err error) + type Latency struct + Avg float64 + Max float64 + Min float64 + Percentile50 float64 + Percentile90 float64 + Percentile99 float64 + type Throughput struct + Avg float64 + Max float64 + Min float64 + Percentile50 float64 + Percentile90 float64 + Percentile99 float64