mirror of
https://github.com/fankes/komari-agent.git
synced 2025-10-18 18:49:23 +08:00
Fix mountpoint paths by removing trailing slashes
This commit is contained in:
@@ -66,9 +66,9 @@ func isPhysicalDisk(part disk.PartitionStat) bool {
|
||||
"/dev/shm",
|
||||
"/run",
|
||||
"/run/lock",
|
||||
"/run/user/",
|
||||
"/var/lib/containers/",
|
||||
"/var/lib/docker/",
|
||||
"/run/user",
|
||||
"/var/lib/containers",
|
||||
"/var/lib/docker",
|
||||
}
|
||||
for _, mp := range mountpointsToExclude {
|
||||
if mountpoint == mp || strings.HasPrefix(mountpoint, mp) {
|
||||
|
Reference in New Issue
Block a user