Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for formatErasureV3Check (0.19 sec)

  1. cmd/format-erasure_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// Check if the reference format and input formats are same.
    	if err = formatErasureV3Check(quorumFormat, formats[0]); err != nil {
    		t.Fatal(err)
    	}
    
    	// QuorumFormat has .This field empty on purpose, expect a failure.
    	if err = formatErasureV3Check(formats[0], quorumFormat); err == nil {
    		t.Fatal("Unexpected success")
    	}
    
    	formats[0] = nil
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Apr 15 08:25:46 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  2. cmd/format-erasure.go

    		}
    		if format.Drives() == maxDrives {
    			format := formats[i].Clone()
    			format.Erasure.This = ""
    			return format, nil
    		}
    	}
    
    	return nil, errErasureReadQuorum
    }
    
    func formatErasureV3Check(reference *formatErasureV3, format *formatErasureV3) error {
    	tmpFormat := format.Clone()
    	this := tmpFormat.Erasure.This
    	tmpFormat.Erasure.This = ""
    	if len(reference.Erasure.Sets) != len(format.Erasure.Sets) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  3. cmd/erasure-sets.go

    // format, after successful validation.
    //   - i'th position is the set index
    //   - j'th position is the disk index in the current set
    func findDiskIndex(refFormat, format *formatErasureV3) (int, int, error) {
    	if err := formatErasureV3Check(refFormat, format); err != nil {
    		return 0, 0, err
    	}
    
    	if format.Erasure.This == offlineDiskUUID {
    		return -1, -1, fmt.Errorf("DriveID: %s is offline", format.Erasure.This)
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 37.7K bytes
    - Viewed (0)
Back to top