Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for fixFormatErasureV3 (0.29 sec)

  1. cmd/format-erasure_test.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"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 {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  2. cmd/format-erasure.go

    		if len(format.Erasure.Sets) > 1 {
    			continue
    		}
    		if format.Erasure.This == "" {
    			return true
    		}
    	}
    	return false
    }
    
    // fixFormatErasureV3 - fix format Erasure configuration on all disks.
    func fixFormatErasureV3(storageDisks []StorageAPI, endpoints Endpoints, formats []*formatErasureV3) error {
    	g := errgroup.WithNErrs(len(formats))
    	for i := range formats {
    		g.Go(func() error {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 23.1K bytes
    - Viewed (0)
Back to top