diff --git a/sysfs/class_fibrechannel.go b/sysfs/class_fibrechannel.go index 4b583f71..6d0edfbf 100644 --- a/sysfs/class_fibrechannel.go +++ b/sysfs/class_fibrechannel.go @@ -153,6 +153,9 @@ func parseFibreChannelStatistics(hostPath string) (*FibreChannelCounters, error) var counters FibreChannelCounters path := filepath.Join(hostPath, "statistics") + if _, err := os.Stat(path); os.IsNotExist(err) { + return &counters, nil + } files, err := os.ReadDir(path) if err != nil { return nil, err