Documentation ¶
Overview ¶
Package syscallcompat wraps Linux-specific syscalls.
Index ¶
- Constants
- func Dup3(oldfd int, newfd int, flags int) (err error)
- func EnospcPrealloc(fd int, off int64, len int64) (err error)
- func Fallocate(fd int, mode uint32, off int64, len int64) (err error)
- func Getdents(dir string) ([]fuse.DirEntry, error)
- func Mknodat(dirfd int, path string, mode uint32, dev int) (err error)
- func Openat(dirfd int, path string, flags int, mode uint32) (fd int, err error)
- func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
- func Unlinkat(dirfd int, path string) error
Constants ¶
const HaveGetdents = true
HaveGetdents is true if we have a working implementation of Getdents
Variables ¶
This section is empty.
Functions ¶
func Dup3 ¶ added in v1.4.1
Dup3 wraps the Dup3 syscall. We want to use Dup3 rather than Dup2 because Dup2 is not implemented on arm64.
func EnospcPrealloc ¶
EnospcPrealloc preallocates ciphertext space without changing the file size. This guarantees that we don't run out of space while writing a ciphertext block (that would corrupt the block).
func Getdents ¶ added in v1.4.1
Getdents wraps syscall.Getdents and converts the result to []fuse.DirEntry. The function takes a path instead of an fd because we need to be able to call Lstat on files. Fstatat is not yet available in Go as of v1.9: https://github.com/golang/go/issues/14216
Types ¶
This section is empty.