mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
fix: [fs] an error upon rwPool.Write() just attempt rwPool.Create() (#10533)
On some NFS clients looks like errno is incorrectly set, which leads to incorrect errors thrown upwards.
This commit is contained in:
@@ -94,6 +94,10 @@ func isSysErrNotEmpty(err error) bool {
|
||||
// Check if the given error corresponds to the specific ERROR_PATH_NOT_FOUND for windows
|
||||
func isSysErrPathNotFound(err error) bool {
|
||||
if runtime.GOOS != globalWindowsOSName {
|
||||
var pathErr *os.PathError
|
||||
if errors.As(err, &pathErr) {
|
||||
return pathErr.Err == syscall.ENOENT
|
||||
}
|
||||
return false
|
||||
}
|
||||
var pathErr *os.PathError
|
||||
|
||||
Reference in New Issue
Block a user