kubernetesk8s.io/kubernetes/pkg/volume/util/fs Index | Files

package fs

import "k8s.io/kubernetes/pkg/volume/util/fs"

Index

Functions

func Info

func Info(path string) (int64, int64, int64, int64, int64, int64, error)

Info linux returns (available bytes, byte capacity, byte usage, total inodes, inodes free, inode usage, error) for the filesystem that path resides upon.

Types

type UsageInfo

type UsageInfo struct {
	Bytes  int64
	Inodes int64
}

func DiskUsage

func DiskUsage(path string) (UsageInfo, error)

DiskUsage calculates the number of inodes and disk usage for a given directory

Source Files

fs.go

Version
v1.33.0 (latest)
Published
Apr 23, 2025
Platform
linux/amd64
Imports
8 packages
Last checked
5 hours ago

Tools for package owners.