Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for DefaultParityBlocks (0.11 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)
  2. cmd/erasure-object_test.go

    		tt := tt
    		t.(*testing.T).Run("", func(t *testing.T) {
    			globalStorageClass.Update(tt.storageClassCfg)
    			actualReadQuorum, actualWriteQuorum, err := objectQuorumFromMeta(ctx, tt.parts, tt.errs, storageclass.DefaultParityBlocks(len(erasureDisks)))
    			if tt.expectedError != nil && err == nil {
    				t.Errorf("Expected %s, got %s", tt.expectedError, err)
    			}
    			if tt.expectedError == nil && err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jan 30 20:43:25 UTC 2024
    - 36.8K bytes
    - Viewed (0)
Back to top