fs/posix: On windows use helpers and init format.json properly. (#3434)

Fixes #3433
This commit is contained in:
Harshavardhana
2016-12-12 15:43:41 -08:00
committed by GitHub
parent 6b4e6bcebf
commit 2062add05f
2 changed files with 6 additions and 5 deletions

View File

@@ -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