ext4

package
v0.16.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package btrfs provides access to statistics exposed by ext4 filesystems.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳