mountstat

package
v0.0.0-...-547c7ba Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2017 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotStatLine = errors.New("Not a Stat Line")

ErrNotStatLine is an internal error for reporting the end of the RPC stats section

Functions

func PrintStatUsage

func PrintStatUsage(w io.Writer)

PrintStatUsage prints out the configuration documentation for the NFSStats

Types

type NFSStats

type NFSStats struct {
	Remote string
	Local  string
	Events OpStats
	Bytes  OpStats
	XPRT   OpStats
	Ops    map[string]OpStats
}

NFSStats is an struct representation of an NFS entry in /proc/self/mountstats

func Diff

func Diff(curr, prev *NFSStats) (n *NFSStats)

Diff calculates the change between NFSStats

func ReadMountStats

func ReadMountStats() (stats []*NFSStats, err error)

ReadMountStats gets all of the NFS entries in /proc/self/mountstats

type OpStats

type OpStats map[string]int64

OpStats is a map of RPC statistics for each RPC method

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL