Commit dceb33d1 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #32097 from brendandburns/dev

Automatic merge from submit-queue Don't return an error if a file doesn't exist for IsPathDevice(...) Fixes https://github.com/kubernetes/kubernetes/issues/30455 @saad-ali @thockin fyi, since linux devices and storage.
parents 08b6eaff 07c8f9a1
......@@ -208,6 +208,9 @@ func exclusiveOpenFailsOnDevice(pathname string) (bool, error) {
func pathIsDevice(pathname string) (bool, error) {
finfo, err := os.Stat(pathname)
if os.IsNotExist(err) {
return false, nil
}
// err in call to os.Stat
if err != nil {
return false, err
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment