Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNumFiles ¶ added in v0.0.37
func SetMaxNumFiles ¶ added in v0.0.37
func SetNumFiles ¶ added in v0.0.37
SetNumFiles sets the linux rlimit for the maximum open files.
Types ¶
type DiskUsage ¶ added in v0.0.75
type DiskUsage struct {
// contains filtered or unexported fields
}
func NewDiskUsage ¶ added in v0.0.75
func (*DiskUsage) Usage ¶ added in v0.0.75
Usage returns percentage of used on the file system
https://github.com/coreutils/coreutils/blob/master/src/df.c#:~:text=pct%20%3D%20u100%20/%20nonroot_total%20%2B%20(u100%20%25%20nonroot_total%20!%3D%200)%3B By default, ext2/3/4 filesystems reserve 5% of the space to be useable only by root. This is to avoid a normal user completely filling the disk which would then cause system components to fail whenever they next needed to write to the disk
Click to show internal directories.
Click to hide internal directories.