Registry / utility / detailyang-go-fallocate

detailyang-go-fallocate

JSON →
library0.0.0-20180908115635-432fa640bd2egogounverified

Go binding for fallocate syscall to preallocate disk space.

go get github.com/detailyang/go-fallocate
INSTALL
IMPORT
SIG · DETAILYANG-GO-FALL
D
detailyang-go-fallocate
utilitygov0.0.0-20180908115635-432fa640bd2e
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

fallocate
github.com/detailyang/go-fallocate

Preallocates 1 MB of disk space for a file.

package main import ( "os" "github.com/detailyang/go-fallocate" ) func main() { f, _ := os.Create("file.dat") defer f.Close() fallocate.Fallocate(f, 0, 0, 1024*1024) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20180908115635-432fa640bd2elatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
detailyang-go-fallocate — go get detailyang-go-fallocate · libregistry