MCPcopy Index your code
hub / github.com/crowdsecurity/crowdsec / IsNetworkFS

Function IsNetworkFS

pkg/fsutil/utils.go:7–16  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

5)
6
7func IsNetworkFS(path string) (bool, string, error) {
8 fsType, err := GetFSType(path)
9 if err != nil {
10 return false, "", err
11 }
12
13 fsType = strings.ToLower(fsType)
14
15 return fsType == "nfs" || fsType == "cifs" || fsType == "smb" || fsType == "smb2", fsType, nil
16}

Callers 2

setupTailForFileMethod · 0.92
LoadDBConfigMethod · 0.92

Calls 1

GetFSTypeFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…