package fallocate

import "github.com/hanwen/go-fuse/v2/internal/fallocate"

Index

Functions

func Fallocate

func Fallocate(fd int, mode uint32, off int64, len int64) (err error)

Fallocate is a wrapper around fallocate syscall. On Linux, it is a wrapper around fallocate(2). On Darwin, it is a wrapper around fnctl(2). On FreeBSD, it is a wrapper around posix_fallocate(2).

Source Files

fallocate.go fallocate_linux.go

Version
v2.8.0 (latest)
Published
Jun 11, 2025
Platform
linux/amd64
Imports
1 packages
Last checked
8 hours ago

Tools for package owners.