Files
cgofuse/fuse/utils/fuse_darwin.go
Matheus Sampaio Queiroga 6a99ef3fb4
All checks were successful
Fuse test / go-test (push) Successful in 34s
Fix freebsd fuse utils and add test to linux
Signed-off-by: Matheus Sampaio Queiroga <srherobrine20@gmail.com>
2025-08-03 20:53:23 -03:00

23 lines
479 B
Go

//go:build darwin
package utils
import (
"syscall"
"sirherobrine23.com.br/Sirherobrine23/cgofuse/fuse"
)
func AppendStatFS(dst *fuse.Statfs_t, src *syscall.Statfs_t) {
*dst = fuse.Statfs_t{}
dst.Bsize = uint64(src.Bsize)
dst.Frsize = 1
dst.Blocks = uint64(src.Blocks)
dst.Bfree = uint64(src.Bfree)
dst.Bavail = uint64(src.Bavail)
dst.Files = uint64(src.Files)
dst.Ffree = uint64(src.Ffree)
dst.Favail = uint64(src.Ffree)
dst.Namemax = 255 //uint64(src.Namelen)
}