fsutil

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: Apache-2.0, MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const FallocFlPunchHole = 0x02 // linux/falloc.h

Variables

This section is empty.

Functions

func Deallocate

func Deallocate(file *os.File, offset int64, length int64) error

Types

type FsStat

type FsStat struct {
	Capacity  int64
	Available int64 // Available to use for sector storage
	Reserved  int64
}

func Statfs

func Statfs(path string) (FsStat, error)

type SizeInfo

type SizeInfo struct {
	OnDisk int64
}

func FileSize

func FileSize(path string) (SizeInfo, error)

FileSize returns bytes used by a file on disk

Jump to

Keyboard shortcuts

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