All checks were successful
Fuse test / go-test (push) Successful in 34s
Signed-off-by: Matheus Sampaio Queiroga <srherobrine20@gmail.com>
23 lines
479 B
Go
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)
|
|
}
|