This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
//go:build !linux
|
||||
|
||||
package hostcollect
|
||||
|
||||
import "errors"
|
||||
|
||||
// statFS is unavailable off Linux. The package still builds and its parsers stay
|
||||
// testable on a developer machine; filesystem usage simply degrades to a warning.
|
||||
func statFS(string) (FilesystemUsage, error) {
|
||||
return FilesystemUsage{}, errors.New("hostcollect: statfs is only available on linux")
|
||||
}
|
||||
Reference in New Issue
Block a user