package ext4

import "github.com/prometheus/procfs/ext4"

Package btrfs provides access to statistics exposed by ext4 filesystems.

Index

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

func NewDefaultFS() (FS, error)

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

func NewFS(procMountPoint string, sysMountPoint string) (FS, error)

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

func (fs FS) ProcStat() ([]*Stats, error)

ProcStat returns stats for the filesystem.

type Stats

type Stats struct {
	Name string

	Errors   uint64
	Warnings uint64
	Messages uint64
}

Stats contains statistics for a single Btrfs filesystem. See Linux fs/btrfs/sysfs.c for more information.

Source Files

ext4.go

Version
v0.16.1 (latest)
Published
Apr 19, 2025
Platform
linux/amd64
Imports
4 packages
Last checked
2 hours ago

Tools for package owners.