XL: Change minimum disks supported to 6 now. (#2023)

This change co-incides with another patch set which
reduces the writeQuorum requirement. With the
write quorum change it is now possible to support
6 disk configuration.
This commit is contained in:
Harshavardhana
2016-06-29 02:05:29 -07:00
committed by Anand Babu (AB) Periasamy
parent b6b9e88e47
commit 3ac39ff107
3 changed files with 9 additions and 8 deletions

View File

@@ -74,7 +74,7 @@ const (
// Maximum erasure blocks.
maxErasureBlocks = 16
// Minimum erasure blocks.
minErasureBlocks = 8
minErasureBlocks = 6
)
// Validate if input disks are sufficient for initializing XL.
@@ -94,7 +94,7 @@ func checkSufficientDisks(disks []string) error {
}
// Verify if we have even number of disks.
// only combination of 8, 12, 16 are supported.
// only combination of 6, 8, 10, 12, 14, 16 are supported.
if !isEven(totalDisks) {
return errXLNumDisks
}