diskfull

package
v0.45.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package diskfull tells a store's out-of-space error apart (ADR-0297 Decision 3): a write that fails with ENOSPC is fault.InsufficientStorage, a 507, while the daemon keeps running.

Index

Constants

This section is empty.

Variables

View Source
var ErrDiskFull = fault.NewKnownCause(fault.InsufficientStorage, "diskfull.disk-full",
	"The disk that holds funcd's data is full.",
	"Free space on that disk, then retry; funcd keeps running meanwhile.")

ErrDiskFull is the known cause of a write that fails with ENOSPC (ADR-0330 Decision 1), which Wrapf raises for every store that calls it.

Functions

func Is

func Is(err error) bool

Is reports whether err matches syscall.ENOSPC.

func Wrapf

func Wrapf(err error, op, format string, a ...any) *fault.Error

Wrapf wraps a store write's error as fault.Wrapf does: raised from ErrDiskFull, of kind fault.InsufficientStorage, when it matches syscall.ENOSPC, and fault.Internal otherwise.

Types

This section is empty.

Jump to

Keyboard shortcuts

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