utilgo.mau.fi/util/fallocate Index | Files

package fallocate

import "go.mau.fi/util/fallocate"

Package fallocate provides a unified interface for preallocating space for a file.

Index

Variables

var ErrOutOfSpace error = unix.ENOSPC

Functions

func Fallocate

func Fallocate(file *os.File, size int) error

Source Files

doc.go fallocate_linux.go

Version
v0.8.6 (latest)
Published
Mar 16, 2025
Platform
linux/amd64
Imports
2 packages
Last checked
1 week ago

Tools for package owners.