23 lines
494 B
Go
23 lines
494 B
Go
//go:build openbsd
|
|
|
|
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.F_bsize)
|
|
dst.Frsize = 1
|
|
dst.Blocks = uint64(src.F_blocks)
|
|
dst.Bfree = uint64(src.F_bfree)
|
|
dst.Bavail = uint64(src.F_bavail)
|
|
dst.Files = uint64(src.F_files)
|
|
dst.Ffree = uint64(src.F_ffree)
|
|
dst.Favail = uint64(src.F_ffree)
|
|
dst.Namemax = 255 //uint64(src.Namelen)
|
|
}
|