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

Function deleteStatusFile

cmd/nvidia-validator/main.go:1025–1034  ·  view source on GitHub ↗
(statusFile string)

Source from the content-addressed store, hash-verified

1023}
1024
1025func deleteStatusFile(statusFile string) error {
1026 err := os.Remove(statusFile)
1027 if err != nil {
1028 if !os.IsNotExist(err) {
1029 return fmt.Errorf("unable to remove driver status file %s: %w", statusFile, err)
1030 }
1031 // status file already removed
1032 }
1033 return nil
1034}
1035
1036func (n *NvidiaFs) validate() error {
1037 // delete driver status file if already present

Callers 12

validateMethod · 0.85
validateMethod · 0.85
validateMethod · 0.85
validateMethod · 0.85
validateMethod · 0.85
validateMethod · 0.85
validateMethod · 0.85
validateMethod · 0.85
validateMethod · 0.85
validateMethod · 0.85
validateMethod · 0.85
validateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected