MCPcopy Create free account
hub / github.com/NVIDIA/gpu-operator / getDevRoot

Method getDevRoot

cmd/nvidia-validator/find.go:76–81  ·  view source on GitHub ↗

getDevRoot returns the dev root associated with the root. If the root is not a dev root, this defaults to "/".

()

Source from the content-addressed store, hash-verified

74// getDevRoot returns the dev root associated with the root.
75// If the root is not a dev root, this defaults to "/".
76func (r root) getDevRoot() string {
77 if r.isDevRoot() {
78 return string(r)
79 }
80 return "/"
81}
82
83// findFile searches the root for a specified file.
84// A number of folders can be specified to search in addition to the root itself.

Callers 1

getDriverInfoFunction · 0.80

Calls 1

isDevRootMethod · 0.95

Tested by

no test coverage detected