Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. cmd/format-erasure_test.go

    	"crypto/sha256"
    	"encoding/hex"
    	"encoding/json"
    	"os"
    	"reflect"
    	"testing"
    )
    
    // tests fixFormatErasureV3 - fix format.json on all disks.
    func TestFixFormatV3(t *testing.T) {
    	erasureDirs, err := getRandomDisks(8)
    	if err != nil {
    		t.Fatal(err)
    	}
    	for _, erasureDir := range erasureDirs {
    		defer os.RemoveAll(erasureDir)
    	}
    	endpoints := mustGetNewEndpoints(0, 8, erasureDirs...)
    
    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/admin-handlers_test.go

    }
    
    // initTestObjLayer - Helper function to initialize an Erasure-based object
    // layer and set globalObjectAPI.
    func initTestErasureObjLayer(ctx context.Context) (ObjectLayer, []string, error) {
    	erasureDirs, err := getRandomDisks(16)
    	if err != nil {
    		return nil, nil, err
    	}
    	endpoints := mustGetPoolEndpoints(0, erasureDirs...)
    	globalPolicySys = NewPolicySys()
    	objLayer, err := newErasureServerPools(ctx, endpoints)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 24 10:24:01 UTC 2024
    - 13.9K bytes
    - Viewed (0)
Back to top