mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
format: Check properly for disks in valid formats. (#3427)
There was an error in how we validated disk formats, if one of the disk was formatted and was formatted with FS would cause confusion and object layer would never initialize essentially go into an infinite loop. Validate pre-emptively and also check for FS format properly.
This commit is contained in:
@@ -31,7 +31,7 @@ func healFormatXL(storageDisks []StorageAPI) (err error) {
|
||||
// Generic format check.
|
||||
// - if (no quorum) return error
|
||||
// - if (disks not recognized) // Always error.
|
||||
if err = genericFormatCheck(formatConfigs, sErrs); err != nil {
|
||||
if err = genericFormatCheckXL(formatConfigs, sErrs); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user