Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for newFormats (0.05 sec)

  1. cmd/format-erasure.go

    			if errors.Is(errs[i*setDriveCount+j], errUnformattedDisk) {
    				newFormats[i][j] = &formatErasureV3{}
    				newFormats[i][j].ID = refFormat.ID
    				newFormats[i][j].Format = refFormat.Format
    				newFormats[i][j].Version = refFormat.Version
    				newFormats[i][j].Erasure.This = refFormat.Erasure.Sets[i][j]
    				newFormats[i][j].Erasure.Sets = refFormat.Erasure.Sets
    				newFormats[i][j].Erasure.Version = refFormat.Erasure.Version
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 23.1K bytes
    - Viewed (0)
  2. cmd/format-erasure_test.go

    	if newFormats == nil {
    		t.Fatal("Unexpected failure")
    	}
    
    	// Check if deployment IDs are preserved.
    	for i := range newFormats {
    		for j := range newFormats[i] {
    			if newFormats[i][j] == nil {
    				continue
    			}
    			if newFormats[i][j].ID != quorumFormat.ID {
    				t.Fatal("Deployment id in the new format is lost")
    			}
    		}
    	}
    }
    
    func BenchmarkInitStorageDisks256(b *testing.B) {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  3. cmd/fmt-gen.go

    		for i := range setCount { // for each erasure set
    			for j := range setDriveCount {
    				newFormat := format.Clone()
    				newFormat.Erasure.This = format.Erasure.Sets[i][j]
    				if deploymentID != "" {
    					newFormat.ID = deploymentID
    				}
    				drive := pool.Endpoints[i*setDriveCount+j]
    				fmtBytes, err := json.Marshal(newFormat)
    				if err != nil {
    					//nolint:gocritic
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 3.7K bytes
    - Viewed (0)
Back to top