Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for getFormatErasureInQuorum (0.14 sec)

  1. cmd/format-erasure_test.go

    	for i, testCase := range testCases {
    		if err := checkFormatErasureValue(testCase.format, nil); err != nil && testCase.success {
    			t.Errorf("Test %d: Expected failure %s", i+1, err)
    		}
    	}
    }
    
    // Tests getFormatErasureInQuorum()
    func TestGetFormatErasureInQuorumCheck(t *testing.T) {
    	setCount := 2
    	setDriveCount := 16
    
    	format := newFormatErasureV3(setCount, setDriveCount)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Apr 15 08:25:46 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  2. cmd/prepare-storage.go

    	}
    
    	// Return error when quorum unformatted disks but waiting for rest
    	// of the servers to be online.
    	if unformattedDisks && firstDisk {
    		return nil, errFirstDiskWait
    	}
    
    	format, err = getFormatErasureInQuorum(formatConfigs)
    	if err != nil {
    		var drivesNotFound int
    		for _, format := range formatConfigs {
    			if format != nil {
    				continue
    			}
    			drivesNotFound++
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 20:51:54 UTC 2024
    - 11.1K bytes
    - Viewed (1)
  3. cmd/format-erasure.go

    		}
    	}
    	return nil
    }
    
    // Get backend Erasure format in quorum `format.json`.
    func getFormatErasureInQuorum(formats []*formatErasureV3) (*formatErasureV3, error) {
    	formatCountMap := make(map[int]int, len(formats))
    	for _, format := range formats {
    		if format == nil {
    			continue
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  4. cmd/erasure-sets.go

    	if err = checkFormatErasureValues(formats, storageDisks, s.setDriveCount); err != nil {
    		return madmin.HealResultItem{}, err
    	}
    
    	refFormat, err := getFormatErasureInQuorum(formats)
    	if err != nil {
    		return res, err
    	}
    
    	// Prepare heal-result
    	res = madmin.HealResultItem{
    		Type:      madmin.HealItemMetadata,
    		Detail:    "disk-format",
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 27 10:41:37 UTC 2024
    - 37K bytes
    - Viewed (1)
Back to top