mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
xl: Remove wrong wording for errCorruptedFormat (#18775)
Also add errCorruptedBackend to make it easier to differentiate between corrupted content or something else wrong in the backend drive
This commit is contained in:
@@ -779,12 +779,12 @@ func (s *xlStorage) checkFormatJSON() (os.FileInfo, error) {
|
||||
return nil, errDiskAccessDenied
|
||||
}
|
||||
logger.LogOnceIf(GlobalContext, err, "check-format-json") // log unexpected errors
|
||||
return nil, errCorruptedFormat
|
||||
return nil, errCorruptedBackend
|
||||
} else if osIsPermission(err) {
|
||||
return nil, errDiskAccessDenied
|
||||
}
|
||||
logger.LogOnceIf(GlobalContext, err, "check-format-json") // log unexpected errors
|
||||
return nil, errCorruptedFormat
|
||||
return nil, errCorruptedBackend
|
||||
}
|
||||
return fi, nil
|
||||
}
|
||||
@@ -830,12 +830,12 @@ func (s *xlStorage) GetDiskID() (string, error) {
|
||||
return "", errDiskAccessDenied
|
||||
}
|
||||
logger.LogOnceIf(GlobalContext, err, "check-format-json") // log unexpected errors
|
||||
return "", errCorruptedFormat
|
||||
return "", errCorruptedBackend
|
||||
} else if osIsPermission(err) {
|
||||
return "", errDiskAccessDenied
|
||||
}
|
||||
logger.LogOnceIf(GlobalContext, err, "check-format-json") // log unexpected errors
|
||||
return "", errCorruptedFormat
|
||||
return "", errCorruptedBackend
|
||||
}
|
||||
|
||||
format := &formatErasureV3{}
|
||||
|
||||
Reference in New Issue
Block a user