Ecosyste.ms: Repos
An open API service providing repository metadata for many open source software ecosystems.
Package Usage: go: github.com/moby/sys/mountinfo
Package mountinfo provides a set of functions to retrieve information about OS mounts.
Currently it supports Linux. For historical reasons, there is also some support for FreeBSD and OpenBSD,
and a shallow implementation for Windows, but in general this is Linux-only package, so
the rest of the document only applies to Linux, unless explicitly specified otherwise.
In Linux, information about mounts seen by the current process is available from
/proc/self/mountinfo. Note that due to mount namespaces, different processes can
see different mounts. A per-process mountinfo table is available from /proc/<PID>/mountinfo,
where <PID> is a numerical process identifier.
In general, /proc is not a very efficient interface, and mountinfo is not an exception.
For example, there is no way to get information about a specific mount point (i.e. it
is all-or-nothing). This package tries to hide the /proc ineffectiveness by using
parse filters while reading mountinfo. A filter can skip some entries, or stop
processing the rest of the file once the needed information is found.
For mountinfo filters that accept path as an argument, the path must be absolute,
having all symlinks resolved, and being cleaned (i.e. no extra slashes or dots).
One way to achieve all of the above is to employ filepath.Abs followed by
filepath.EvalSymlinks (the latter calls filepath.Clean on the result so
there is no need to explicitly call filepath.Clean).
NOTE that in many cases there is no need to consult mountinfo at all. Here are some
of the cases where mountinfo should not be parsed:
1. Before performing a mount. Usually, this is not needed, but if required (say to
prevent over-mounts), to check whether a directory is mounted, call os.Lstat
on it and its parent directory, and compare their st.Sys().(*syscall.Stat_t).Dev
fields -- if they differ, then the directory is the mount point. NOTE this does
not work for bind mounts. Optionally, the filesystem type can also be checked
by calling unix.Statfs and checking the Type field (i.e. filesystem type).
2. After performing a mount. If there is no error returned, the mount succeeded;
checking the mount table for a new mount is redundant and expensive.
3. Before performing an unmount. It is more efficient to do an unmount and ignore
a specific error (EINVAL) which tells the directory is not mounted.
4. After performing an unmount. If there is no error returned, the unmount succeeded.
5. To find the mount point root of a specific directory. You can perform os.Stat()
on the directory and traverse up until the Dev field of a parent directory differs.
14 versions
Latest release: 6 months ago
3,093 dependent packages
View more package details: https://packages.ecosyste.ms/registries/proxy.golang.org/packages/github.com/moby/sys/mountinfo
View more repository details: https://repos.ecosyste.ms/hosts/GitHub/repositories/moby%2Fsys
Dependent Repos 18,076
admariner/jitsu Fork of jitsucom/jitsu
Jitsu is an open-source data integration platform- v0.4.0 configurator/backend/go.sum
- v0.4.1 configurator/backend/go.sum
- v0.5.0 configurator/backend/go.sum
- v0.5.0 server/go.mod
- v0.4.0 server/go.sum
- v0.4.1 server/go.sum
- v0.5.0 server/go.sum
Size: 29.4 MB - Last synced: about 1 month ago - Pushed: 10 months ago
ossf/scorecard-action
Official GitHub Action for OpenSSF Scorecard.- v0.1.0 go.sum
- v0.1.3 go.sum
- v0.4.0 go.sum
- v0.4.1 go.sum
- v0.5.0 go.sum
- v0.6.0 go.sum
Size: 6.43 MB - Last synced: 5 days ago - Pushed: 5 days ago
zeromike/syft Fork of anchore/syft
CLI tool and library for generating a Software Bill of Materials from container images and filesystems- v0.4.0 go.sum
- v0.4.1 go.sum
Size: 10.4 MB - Last synced: 12 months ago - Pushed: almost 2 years ago
krasish/test-infra Fork of kyma-project/test-infra
Test infrastructure for the Kyma project.- v0.4.0 development/gcp/cloud-functions/getfailureinstancedetails/go.sum
- v0.4.1 development/gcp/cloud-functions/getfailureinstancedetails/go.sum
- v0.4.0 go.sum
- v0.4.1 go.sum
Size: 15.3 MB - Last synced: about 1 year ago - Pushed: about 1 year ago
cheqd/tendermint Fork of tendermint/tendermint
⟁ Tendermint Core (BFT Consensus) in Go- v0.4.1 go.sum
- v0.5.0 go.sum
Size: 142 MB - Last synced: 19 days ago - Pushed: about 1 year ago
ahmedabu98/beam Fork of apache/beam
Apache Beam is a unified programming model for Batch and Streaming- v0.5.0 sdks/go.mod
- v0.4.0 sdks/go.sum
- v0.4.1 sdks/go.sum
- v0.5.0 sdks/go.sum
Size: 365 MB - Last synced: 16 days ago - Pushed: 17 days ago
champ-oss/terraform-aws-metabase
- v0.4.0 test/src/go.sum
- v0.4.1 test/src/go.sum
Size: 229 KB - Last synced: 3 days ago - Pushed: 3 days ago
observIQ/grafana-agent Fork of grafana/agent
Telemetry agent for the LGTM stack.- v0.5.0 go.mod
- v0.4.0 go.sum
- v0.4.1 go.sum
- v0.5.0 go.sum
Size: 48.3 MB - Last synced: 5 months ago - Pushed: 5 months ago
tharun208/loki Fork of grafana/loki
Like Prometheus, but for logs.- v0.4.0 operator/go.sum
- v0.4.1 operator/go.sum
- v0.4.0 tools/lambda-promtail/go.sum
- v0.4.1 tools/lambda-promtail/go.sum
Size: 168 MB - Last synced: 11 days ago - Pushed: about 1 year ago
xpivarc/kubevirt Fork of kubevirt/kubevirt
Kubernetes Virtualization API and runtime in order to define and manage virtual machines.- v0.1.3 go.sum
Size: 262 MB - Last synced: about 2 months ago - Pushed: about 2 months ago
antonyggvzvmnxxcx/linkerd2 Fork of linkerd/linkerd2
Ultralight, security-first service mesh for Kubernetes. Main repo for Linkerd 2.x.- v0.4.1 go.sum
- v0.5.0 go.sum
Size: 33.5 MB - Last synced: about 1 year ago - Pushed: about 1 year ago
rancher-max/rancher Fork of rancher/rancher
Complete container management platform- v0.4.0 go.sum
- v0.4.1 go.sum
- v0.5.0 go.sum
- v0.6.0 go.sum
- v0.6.2 go.sum
- v0.4.0 cmd/rancherd/go.sum
- v0.4.1 cmd/rancherd/go.sum
- v0.6.2 go.mod
Size: 131 MB - Last synced: 17 days ago - Pushed: 17 days ago
carlkyrillos/integreatly-operator Fork of integr8ly/integreatly-operator
An Openshift Operator based on the Operator SDK for installing and reconciling Integreatly services- v0.4.1 go.mod
- v0.4.1 go.sum
Size: 126 MB - Last synced: 10 days ago - Pushed: 10 days ago
FairwindsOps/insights-cli
A command line tool for Fairwinds Insights- v0.4.0 go.sum
- v0.4.1 go.sum
- v0.5.0 go.sum
Size: 460 KB - Last synced: 11 days ago - Pushed: 12 days ago
accuknox/tools
Collection of command line tools to deploy policy engines, policy discovery engines and associated components.- v0.4.0 container-snapshot/go.sum
- v0.4.1 container-snapshot/go.sum
Size: 40.1 MB - Last synced: 10 months ago - Pushed: 10 months ago
jrivera-px/operator Fork of libopenstorage/operator
Storage operator for Kubernetes- v0.1.3 go.sum
Size: 34.9 MB - Last synced: about 1 year ago - Pushed: about 1 year ago
paketo-buildpacks/go
A Cloud Native Buildpack for Go- v0.4.0 go.sum
- v0.4.1 go.sum
- v0.5.0 go.sum
Size: 82.5 MB - Last synced: 1 day ago - Pushed: 1 day ago
paketo-buildpacks/dotnet-core
A Cloud Native Buildpack for .NET Core- v0.4.0 go.sum
- v0.4.1 go.sum
- v0.5.0 go.sum
Size: 134 MB - Last synced: 1 day ago - Pushed: 1 day ago
cilium/cilium-olm 📦
- v0.1.0 tools/go.sum
- v0.1.3 tools/go.sum
- v0.4.0 tools/go.sum
- v0.4.1 tools/go.sum
Size: 982 KB - Last synced: 9 months ago - Pushed: 12 months ago
influxdata/influxdb-observability
- v0.5.0 tests-integration/go.sum
Size: 2.21 MB - Last synced: 6 days ago - Pushed: 6 days ago
RafaySystems/terraform-provider-rafay
Rafay terraform provider- v0.4.0 go.sum
- v0.4.1 go.sum
- v0.5.0 go.sum
Size: 4.33 MB - Last synced: 5 days ago - Pushed: 5 days ago
Boroda76/go_service_naked
- v0.4.0 go.sum
- v0.4.1 go.sum
Size: 791 KB - Last synced: 10 days ago - Pushed: about 1 year ago
mirakl/lib-vault
Provides useful vault api for golang project- v0.5.0 go.sum
Size: 181 KB - Last synced: 7 months ago - Pushed: about 1 year ago
Mu-L/docker-slim Fork of slimtoolkit/slim
DockerSlim (docker-slim): Don't change anything in your Docker container image and minify it by up to 30x (and for compiled languages even more) making it secure too! (free and open source)- v0.4.0 go.sum
- v0.4.1 go.sum
Size: 64.8 MB - Last synced: 18 days ago - Pushed: 23 days ago
drh-determined-ai/determined Fork of determined-ai/determined
Determined: Deep Learning Training Platform- v0.4.0 agent/go.sum
- v0.4.1 agent/go.sum
Size: 114 MB - Last synced: 12 months ago - Pushed: 12 months ago
kubernetes-sigs/cluster-api-provider-nested
Cluster API Provider for Nested Clusters- v0.4.1 virtualcluster/pkg/vn-agent/server/test/go.sum
Size: 3.04 MB - Last synced: 9 days ago - Pushed: 9 days ago
sapcc/absent-metrics-operator
Absent Metrics Operator creates metric absence alerts atop Kubernetes- v0.4.0 go.sum
- v0.4.1 go.sum
- v0.5.0 go.sum
Size: 10.1 MB - Last synced: 15 days ago - Pushed: 16 days ago
leoluz/argo-rollouts Fork of argoproj/argo-rollouts
Progressive Delivery for Kubernetes- v0.1.3 go.sum
Size: 25.8 MB - Last synced: 13 days ago - Pushed: about 1 year ago
dreamer-zq/cosmos-sdk Fork of cosmos/cosmos-sdk
:chains: A Framework for Building High Value Public Blockchains :sparkles:- v0.4.1 cosmovisor/go.sum
- v0.4.1 go.sum
Size: 217 MB - Last synced: 13 days ago - Pushed: 7 months ago
stolostron/multicloud-operators-subscription-release
Managing helm release with operators for multicloud.- v0.4.0 go.sum
- v0.4.1 go.sum
- v0.5.0 go.sum
- v0.6.0 go.sum
Size: 1.63 MB - Last synced: 13 days ago - Pushed: about 1 year ago
millicent-money/cosmos-sdk
- v0.4.1 cosmovisor/go.sum
- v0.4.1 go.sum
- v0.4.1 store/tools/ics23/go.sum
Size: 361 MB - Last synced: 9 months ago - Pushed: about 1 year ago
tigefa4u/docker-slim Fork of slimtoolkit/slim
DockerSlim (docker-slim): Don't change anything in your Docker container image and minify it by up to 30x (and for compiled languages even more) making it secure too! (free and open source)- v0.4.0 go.sum
- v0.4.1 go.sum
Size: 64.8 MB - Last synced: about 1 year ago - Pushed: about 1 year ago
elisasre/kops-autoscaler-openstack
Provide AutoScalingGroup capability to OpenStack Kops- v0.4.0 go.sum
- v0.4.1 go.sum
- v0.5.0 go.sum
- v0.6.0 go.sum
Size: 17.3 MB - Last synced: 8 days ago - Pushed: 8 days ago