file

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const PreallocateImplemented = true

PreallocateImplemented is a constant indicating whether the implementation of Preallocate actually does anything.

View Source
const SetSparseImplemented = false

SetSparseImplemented is a constant indicating whether the implementation of SetSparse actually does anything.

Variables

View Source
var ErrDiskFull = errors.New("preallocate: file too big for remaining disk space")

ErrDiskFull is returned from PreAllocate when it detects disk full

Functions

func PreAllocate

func PreAllocate(size int64, out *os.File) (err error)

PreAllocate the file for performance reasons

func SetSparse

func SetSparse(out *os.File) error

SetSparse makes the file be a sparse file

Types

This section is empty.

Jump to

Keyboard shortcuts

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