Validate XL sets on format (#8779)

When formatting a set validate if a host failure will likely lead to data loss.

While we don't know what config will be set in the future 
evaluate to our best knowledge, assuming default settings.
This commit is contained in:
Klaus Post
2020-01-13 22:09:10 +01:00
committed by Harshavardhana
parent d74818b227
commit 37b32199e3
11 changed files with 70 additions and 69 deletions

View File

@@ -26,7 +26,8 @@ type StorageAPI interface {
String() string
// Storage operations.
IsOnline() bool // Returns true if disk is online.
IsOnline() bool // Returns true if disk is online.
Hostname() string // Returns host name if remote host.
LastError() error
Close() error
SetDiskID(id string)