fsutils

package
v1.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2023 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDiskIsFast added in v1.2.5

func CheckDiskIsFast() (speedMB float64, isFast bool, err error)

CheckDiskIsFast check disk is 'fast' disk to write

func CheckDiskWritingSpeed added in v1.2.5

func CheckDiskWritingSpeed() (speedMB float64, err error)

CheckDiskWritingSpeed test disk writing speed

Types

type StatResult

type StatResult struct {
	// contains filtered or unexported fields
}

func NewStatResult

func NewStatResult(rawStat *unix.Statfs_t) *StatResult

func Stat

func Stat(path string) (*StatResult, error)

Stat device contains the path

func StatCache

func StatCache(path string) (*StatResult, error)

StatCache stat device with cache

func (*StatResult) FreeSize

func (this *StatResult) FreeSize() uint64

func (*StatResult) TotalSize

func (this *StatResult) TotalSize() uint64

func (*StatResult) UsedSize

func (this *StatResult) UsedSize() uint64

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL