This commit is contained in:
commit
bd774932d5
614 files changed
+77116
No files matched your search
@@ -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