statfs

package
v0.0.0-...-04966db Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filesystem

type Filesystem struct {
	Path  string
	Type  Type
	Files uint64
}

A Filesystem contains statistics about a given filesystem.

func Get

func Get(path string) (*Filesystem, error)

Get retrieves statistics for the filesystem mounted at path.

type Type

type Type int

Type is the type of filesystem detected.

const (
	EXT4 Type = 0xef53
	NFS  Type = 0x6969
	XFS  Type = 0x58465342
)

List of possible filesystem types, taken from `man statfs`.

func (Type) String

func (t Type) String() string

Directories

Path Synopsis
cmd
statfs
Command statfs retrieves statistics about filesystems.
Command statfs retrieves statistics about filesystems.

Jump to

Keyboard shortcuts

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