MCPcopy Create free account
hub / github.com/prometheus/procfs / mountOptionsIsValidField

Function mountOptionsIsValidField

mountinfo.go:119–129  ·  view source on GitHub ↗

mountOptionsIsValidField checks a string against a valid list of optional fields keys.

(s string)

Source from the content-addressed store, hash-verified

117
118// mountOptionsIsValidField checks a string against a valid list of optional fields keys.
119func mountOptionsIsValidField(s string) bool {
120 switch s {
121 case
122 "shared",
123 "master",
124 "propagate_from",
125 "unbindable":
126 return true
127 }
128 return false
129}
130
131// mountOptionsParseOptionalFields parses a list of optional fields strings into a double map of strings.
132func mountOptionsParseOptionalFields(o []string) (map[string]string, error) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…