kubernetes: k8s.io/kubernetes/pkg/volume/util/fs Index | Files

package fs

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

Index

Package Files

fs.go

func DiskUsage Uses

func DiskUsage(path string) (*resource.Quantity, error)

DiskUsage gets disk usage of specified path.

func Find Uses

func Find(path string) (int64, error)

Find uses the equivalent of the command `find <path> -dev -printf '.' | wc -c` to count files and directories. While this is not an exact measure of inodes used, it is a very good approximation.

func Info Uses

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.

Package fs imports 7 packages (graph) and is imported by 7 packages. Updated 2021-01-24. Refresh now. Tools for package owners.