Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getRandomDisks (0.13 sec)

  1. cmd/erasure-healing_test.go

    		globalStorageClass.Update(saveSC)
    	}()
    	globalStorageClass.Update(storageclass.Config{
    		Standard: storageclass.StorageClass{
    			Parity: 4,
    		},
    	})
    
    	nDisks := 16
    	fsDirs, err := getRandomDisks(nDisks)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	defer removeRoots(fsDirs)
    
    	// Everything is fine, should return nil
    	objLayer, _, err := initObjectLayer(ctx, mustGetPoolEndpoints(0, fsDirs...))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 49K bytes
    - Viewed (0)
  2. cmd/test-utils_test.go

    	queryValue["suffix"] = suffixes
    	queryValue["events"] = events
    	return makeTestTargetURL(endPoint, bucketName, "", queryValue)
    }
    
    // getRandomDisks - Creates a slice of N random disks, each of the form - minio-XXX
    func getRandomDisks(n int) ([]string, error) {
    	var erasureDisks []string
    	for i := 0; i < n; i++ {
    		path, err := os.MkdirTemp(globalTestTmpDir, "minio-")
    		if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 77K bytes
    - Viewed (0)
Back to top