mirror of
https://git.freebsd.org/ports.git
synced 2025-04-30 18:46:38 -04:00
34 lines
826 B
Go
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
|
|
-}
|