mirror of
https://github.com/minio/minio.git
synced 2025-11-20 09:56:07 -05:00
posix: return errFaultyDisk on I/O errors. (#1885)
When I/O error is occured more than allowed limit, posix returns errFaultyDisk. Fixes #1884
This commit is contained in:
@@ -210,7 +210,7 @@ func (xl xlObjects) readXLMetadata(bucket, object string) (xlMeta xlMetaV1, err
|
||||
buf, err = readAll(disk, bucket, path.Join(object, xlMetaJSONFile))
|
||||
if err != nil {
|
||||
// For any reason disk is not available continue and read from other disks.
|
||||
if err == errDiskNotFound {
|
||||
if err == errDiskNotFound || err == errFaultyDisk {
|
||||
continue
|
||||
}
|
||||
return xlMetaV1{}, err
|
||||
|
||||
Reference in New Issue
Block a user