package vfs

import "github.com/google/cadvisor/fs/vfs"

Index

Functions

func GetVfsStats

func GetVfsStats(path string) (total uint64, free uint64, avail uint64, inodes uint64, inodesFree uint64, err error)

GetVfsStats returns filesystem statistics using the statfs syscall. It has a timeout to prevent hanging on unresponsive filesystems.

func NewPlugin

func NewPlugin() fs.FsPlugin

NewPlugin creates a new VFS filesystem plugin.

Source Files

plugin.go stats.go

Directories

PathSynopsis
fs/vfs/install
Version
v0.55.1 (latest)
Published
Dec 19, 2025
Platform
linux/amd64
Imports
8 packages
Last checked
4 months ago

Tools for package owners.