16 lines
355 B
Go
16 lines
355 B
Go
package scoutfs
|
|
|
|
import (
|
|
"fmt"
|
|
"unsafe"
|
|
)
|
|
|
|
// FetchStatfsMore retrieves filesystem-level metadata from the mount point.
|
|
func (c *Client) FetchStatfsMore() (*StatfsMore, error) {
|
|
var sf StatfsMore
|
|
if err := ioctlRaw(c.fd(), iocStatfsMore, unsafe.Pointer(&sf)); err != nil {
|
|
return nil, fmt.Errorf("statfs more ioctl: %w", err)
|
|
}
|
|
return &sf, nil
|
|
}
|