A recent regression caused new disks not being re-formatted. In the old code, a disk needed be 'online' to be chosen to be formatted but the disk has to be already formatted for XL storage IsOnline() function to return true. It is enough to check if XL storage is nil or not if we want to avoid formatting root disks. Co-authored-by: Anis Elleuch <anis@min.io> Co-authored-by: Anis Elleuch <anis@min.io>
This commit is contained in:
parent
a3c36595a0
commit
d4ae7d5e62
|
@ -705,7 +705,7 @@ func saveUnformattedFormat(ctx context.Context, storageDisks []StorageAPI, forma
|
|||
if format == nil {
|
||||
continue
|
||||
}
|
||||
if storageDisks[index] != nil && storageDisks[index].IsOnline() {
|
||||
if storageDisks[index] != nil {
|
||||
if err := saveFormatErasure(storageDisks[index], format, true); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue