mirror of
https://github.com/minio/minio.git
synced 2025-11-20 01:50:24 -05:00
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:
committed by
Anand Babu (AB) Periasamy
parent
b6b9e88e47
commit
3ac39ff107
4
xl-v1.go
4
xl-v1.go
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user