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

Method validate

cmd/nvidia-validator/main.go:1036–1055  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1034}
1035
1036func (n *NvidiaFs) validate() error {
1037 // delete driver status file if already present
1038 err := deleteStatusFile(outputDirFlag + "/" + nvidiaFsStatusFile)
1039 if err != nil {
1040 return err
1041 }
1042
1043 err = n.runValidation(false)
1044 if err != nil {
1045 fmt.Println("nvidia-fs driver is not ready")
1046 return err
1047 }
1048
1049 // create driver status file
1050 err = createStatusFile(outputDirFlag + "/" + nvidiaFsStatusFile)
1051 if err != nil {
1052 return err
1053 }
1054 return nil
1055}
1056
1057func (n *NvidiaFs) runValidation(silent bool) error {
1058 // check for nvidia_fs module to be loaded

Callers 1

validateComponentFunction · 0.95

Calls 3

runValidationMethod · 0.95
deleteStatusFileFunction · 0.85
createStatusFileFunction · 0.85

Tested by

no test coverage detected