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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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):