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

package fs

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

Index

Functions

func Du

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

func Find

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 FsInfo

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

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

Source Files

fs.go

Version
v1.10.2
Published
Apr 26, 2018
Platform
linux/amd64
Imports
6 packages
Last checked
7 seconds ago

Tools for package owners.