Skip to content

Commit b09d41b

Browse files
committed
Ignore squashfs filesystems
1 parent 77451ed commit b09d41b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/agent.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ func reportMetrics(hostname string) error {
197197
// Send metrics for each disk partition
198198
for _, part := range parts {
199199
// Skip pseudo filesystems
200-
if part.Fstype == "devfs" || part.Fstype == "autofs" || part.Fstype == "nullfs" ||
200+
if part.Fstype == "devfs" || part.Fstype == "autofs" || part.Fstype == "nullfs" || part.Fstype == "squashfs" ||
201201
strings.HasPrefix(part.Fstype, "fuse.") ||
202202
strings.Contains(part.Mountpoint, "/System/Volumes") {
203203
continue

0 commit comments

Comments
 (0)