ports/sysutils/nomad/files/patch-command_agent_host_unix.go
2024-12-06 17:59:32 -08:00

34 lines
826 B
Go

--- command/agent/host/unix.go.orig 2024-11-11 16:35:41 UTC
+++ command/agent/host/unix.go
@@ -69,31 +69,3 @@ func (d *df) available() uint64 {
func (d *df) available() uint64 {
return d.usage.Free
}
-
-// mountedPaths produces a list of mounts
-func mountedPaths() []string {
- partitions, err := disk.Partitions(false)
- if err != nil {
- return []string{err.Error()}
- }
-
- var paths []string
- for _, partition := range partitions {
- fsType := partition.Fstype
-
- switch fsType {
- case "autofs", "binfmt_misc", "cgroup", "debugfs",
- "devpts", "devtmpfs",
- "fusectl", "fuse.lxcfs",
- "hugetlbfs", "mqueue",
- "procfs", "pstore", "rpc_pipefs", "securityfs",
- "sysfs", "tmpfs", "vboxsf", "ptyfs":
- continue
- default:
- }
-
- paths = append(paths, partition.Mountpoint)
- }
-
- return paths
-}