mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
fs/posix: On windows use helpers and init format.json properly. (#3434)
Fixes #3433
This commit is contained in:
@@ -223,7 +223,8 @@ func retryFormattingDisks(firstDisk bool, endpoints []*url.URL, storageDisks []S
|
||||
if len(formatConfigs) == 1 {
|
||||
err := genericFormatCheckFS(formatConfigs[0], sErrs[0])
|
||||
if err != nil {
|
||||
if err == errUnformattedDisk {
|
||||
// For an new directory or existing data.
|
||||
if err == errUnformattedDisk || err == errCorruptedFormat {
|
||||
return initFormatFS(storageDisks[0])
|
||||
}
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user