add isSysErrNotDir to openFileNoSync (#16958)

This commit is contained in:
jiuker
2023-04-04 23:00:08 +08:00
committed by GitHub
parent 3b7781835e
commit 5fa3665074

View File

@@ -1715,6 +1715,8 @@ func (s *xlStorage) openFileNoSync(filePath string, mode int) (f *os.File, err e
return nil, errIsNotRegular
case osIsPermission(err):
return nil, errFileAccessDenied
case isSysErrNotDir(err):
return nil, errFileAccessDenied
case isSysErrIO(err):
return nil, errFaultyDisk
case isSysErrTooManyFiles(err):