mirror of https://github.com/minio/minio.git
add isSysErrNotDir to openFileNoSync (#16958)
This commit is contained in:
parent
3b7781835e
commit
5fa3665074
|
@ -1715,6 +1715,8 @@ func (s *xlStorage) openFileNoSync(filePath string, mode int) (f *os.File, err e
|
||||||
return nil, errIsNotRegular
|
return nil, errIsNotRegular
|
||||||
case osIsPermission(err):
|
case osIsPermission(err):
|
||||||
return nil, errFileAccessDenied
|
return nil, errFileAccessDenied
|
||||||
|
case isSysErrNotDir(err):
|
||||||
|
return nil, errFileAccessDenied
|
||||||
case isSysErrIO(err):
|
case isSysErrIO(err):
|
||||||
return nil, errFaultyDisk
|
return nil, errFaultyDisk
|
||||||
case isSysErrTooManyFiles(err):
|
case isSysErrTooManyFiles(err):
|
||||||
|
|
Loading…
Reference in New Issue