Always ignore autofs filesystems in disk input (#3440)

This commit is contained in:
Daniel Nelson 2017-11-07 11:45:09 -08:00 committed by GitHub
parent 2c2dc97702
commit b81bea658f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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