Always ignore autofs filesystems in disk input (#3440)
This commit is contained in:
@@ -85,6 +85,11 @@ func (s *systemPS) DiskUsage(
|
|||||||
fstypeExcludeSet[filter] = true
|
fstypeExcludeSet[filter] = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Autofs mounts indicate a potential mount, the partition will also be
|
||||||
|
// listed with the actual filesystem when mounted. Ignore the autofs
|
||||||
|
// partition to avoid triggering a mount.
|
||||||
|
fstypeExcludeSet["autofs"] = true
|
||||||
|
|
||||||
var usage []*disk.UsageStat
|
var usage []*disk.UsageStat
|
||||||
var partitions []*disk.PartitionStat
|
var partitions []*disk.PartitionStat
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user