mirror of
https://github.com/minio/minio.git
synced 2026-11-22 23:14:46 +00:00
Report correct error when O_DIRECT is not supported (#9545)
fixes #9537
This commit is contained in:
1 parent
0674c0075e
commit
2dc46cb153
7 files changed
+47
-6
No files matched your search
@@ -38,6 +38,11 @@ func isSysErrNoSpace(err error) bool {
|
||||
return errors.Is(err, syscall.ENOSPC)
|
||||
}
|
||||
|
||||
// Invalid argument, unsupported flags such as O_DIRECT
|
||||
func isSysErrInvalidArg(err error) bool {
|
||||
return errors.Is(err, syscall.EINVAL)
|
||||
}
|
||||
|
||||
// Input/output error
|
||||
func isSysErrIO(err error) bool {
|
||||
return errors.Is(err, syscall.EIO)
|
||||
|
||||
Reference in new issue
Block a user