Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for DefaultParityBlocks (0.08 sec)

  1. internal/config/storageclass/storage-class.go

    func Enabled(kvs config.KVS) bool {
    	ssc := kvs.Get(ClassStandard)
    	rrsc := kvs.Get(ClassRRS)
    	return ssc != "" || rrsc != ""
    }
    
    // DefaultParityBlocks returns default parity blocks for 'drive' count
    func DefaultParityBlocks(drive int) int {
    	switch drive {
    	case 1:
    		return 0
    	case 3, 2:
    		return 1
    	case 4, 5:
    		return 2
    	case 6, 7:
    		return 3
    	default:
    		return 4
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 12:24:04 UTC 2024
    - 12.3K bytes
    - Viewed (0)
Back to top