Documentation
¶
Overview ¶
Package bcachefs provides access to statistics exposed by Bcachefs filesystems.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BtreeWriteStats ¶
BtreeWriteStats contains btree write statistics for a specific type.
type CompressionStats ¶
type CompressionStats struct {
CompressedBytes uint64
UncompressedBytes uint64
AverageExtentSizeBytes uint64
}
CompressionStats contains compression statistics for a specific algorithm.
type CounterStats ¶
CounterStats contains counter values since mount and since filesystem creation.
type DeviceStats ¶
type DeviceStats struct {
Label string
State string
BucketSizeBytes uint64
Buckets uint64
Durability uint64
IODone map[string]map[string]uint64
IOErrors map[string]uint64
}
DeviceStats contains statistics for a Bcachefs device.
type ErrorStats ¶
ErrorStats contains error count and timestamp for a specific error type.
type FS ¶
type FS struct {
// contains filtered or unexported fields
}
FS represents the pseudo-filesystem sys, which provides an interface to kernel data structures.
func NewDefaultFS ¶
NewDefaultFS returns a new Bcachefs using the default sys fs mount point. It will error if the mount point can't be read.
type Stats ¶
type Stats struct {
UUID string
BtreeCacheSizeBytes uint64
Compression map[string]CompressionStats
Errors map[string]ErrorStats
Counters map[string]CounterStats
BtreeWrites map[string]BtreeWriteStats
Devices map[string]*DeviceStats
}
Stats contains statistics for a single Bcachefs filesystem.