Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for formatErasureV3ThisEmpty (0.17 sec)

  1. cmd/format-erasure_test.go

    	}
    
    	// empty format to indicate disk not found, but this
    	// empty should return false.
    	formats[0] = nil
    
    	if ok := formatErasureV3ThisEmpty(formats); ok {
    		t.Fatalf("expected value false, got %t", ok)
    	}
    
    	formats[2].Erasure.This = ""
    	if ok := formatErasureV3ThisEmpty(formats); !ok {
    		t.Fatalf("expected value true, got %t", ok)
    	}
    }
    
    // Tests xl format migration.
    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/format-erasure.go

    			storageDisks[index], err = newStorageAPI(endpoints[index], opts)
    			return err
    		}, index)
    	}
    	return storageDisks, g.Wait()
    }
    
    // formatErasureV3ThisEmpty - find out if '.This' field is empty
    // in any of the input `formats`, if yes return true.
    func formatErasureV3ThisEmpty(formats []*formatErasureV3) bool {
    	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)
Back to top