package fs
import "k8s.io/kubernetes/pkg/volume/util/fs"
Index ¶
- func DiskUsage(path string) (*resource.Quantity, error)
- func Find(path string) (int64, error)
- func Info(path string) (int64, int64, int64, int64, int64, int64, error)
Functions ¶
func DiskUsage ¶
DiskUsage gets disk usage of specified path.
func Find ¶
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 ¶
Info 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.21.0-beta.0
- Published
- Feb 23, 2021
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 7 minutes ago –
Tools for package owners.