package ext4
import "github.com/prometheus/procfs/ext4"
Package btrfs provides access to statistics exposed by ext4 filesystems.
Index ¶
- type FS
- func NewDefaultFS() (FS, error)
- func NewFS(procMountPoint string, sysMountPoint string) (FS, error)
- func (fs FS) ProcStat() ([]*Stats, error)
- type Stats
Types ¶
type FS ¶
type FS struct {
// contains filtered or unexported fields
}
FS represents the pseudo-filesystems proc and sys, which provides an interface to kernel data structures.
func NewDefaultFS ¶
NewDefaultFS returns a new blockdevice fs using the default mountPoints for proc and sys. It will error if either of these mount points can't be read.
func NewFS ¶
NewFS returns a new XFS handle using the given proc and sys mountPoints. It will error if either of the mounts point can't be read.
func (FS) ProcStat ¶
ProcStat returns stats for the filesystem.
type Stats ¶
Stats contains statistics for a single Btrfs filesystem. See Linux fs/btrfs/sysfs.c for more information.
Source Files ¶
- Version
- v0.16.1 (latest)
- Published
- Apr 19, 2025
- Platform
- darwin/amd64
- Imports
- 4 packages
- Last checked
- 4 minutes ago –
Tools for package owners.