Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for Sum (0.19 sec)

  1. cmd/site-replication.go

    			}
    			// no mismatch
    			for _, s := range slc {
    				sum := info.StatsSummary[s.DeploymentID]
    				if !olockCfgMismatch && olockCfgCount == numSites {
    					sum.ReplicatedLockConfig++
    				}
    				if !versionCfgMismatch && versionCfgCount == numSites {
    					sum.ReplicatedVersioningConfig++
    				}
    				if !sseCfgMismatch && sseCfgCount == numSites {
    					sum.ReplicatedSSEConfig++
    				}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 184.2K bytes
    - Viewed (1)
  2. cmd/erasure-metadata.go

    const erasureAlgorithm = "rs-vandermonde"
    
    // GetChecksumInfo - get checksum of a part.
    func (e ErasureInfo) GetChecksumInfo(partNumber int) (ckSum ChecksumInfo) {
    	for _, sum := range e.Checksums {
    		if sum.PartNumber == partNumber {
    			// Return the checksum
    			return sum
    		}
    	}
    	return ChecksumInfo{Algorithm: DefaultBitrotAlgorithm}
    }
    
    // ShardFileSize - returns final erasure size from original size.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 19.2K bytes
    - Viewed (1)
  3. cmd/endpoint-ellipses.go

    		h := xxhash.New()
    		for _, s := range setArgs {
    			for _, d := range s {
    				h.WriteString(d)
    			}
    		}
    
    		layout.pools = append(layout.pools, poolDisksLayout{
    			cmdline: fmt.Sprintf("hash:%x", h.Sum(nil)),
    			layout:  setArgs,
    		})
    	}
    	return
    }
    
    // mergeDisksLayoutFromArgs supports with and without ellipses transparently.
    func mergeDisksLayoutFromArgs(args []string, ctxt *serverCtxt) (err error) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 14.7K bytes
    - Viewed (0)
  4. cmd/object-api-listobjects_test.go

    		{testBuckets[0], "unique/folder/1.txt", "content", nil, false},
    		{testBuckets[1], "unique/folder/1.txt", "content", nil, true},
    	}
    	for _, object := range testObjects {
    		md5Bytes := md5.Sum([]byte(object.content))
    		_, err = obj.PutObject(context.Background(), object.parentBucket, object.name, mustGetPutObjReader(t, bytes.NewBufferString(object.content),
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  5. cmd/xl-storage.go

    		return int64(n), err
    	}
    
    	if _, err = h.Write(buffer); err != nil {
    		return 0, err
    	}
    
    	if _, err = io.Copy(h, file); err != nil {
    		return 0, err
    	}
    
    	if !bytes.Equal(h.Sum(nil), verifier.sum) {
    		return 0, errFileCorrupt
    	}
    
    	return int64(len(buffer)), nil
    }
    
    func (s *xlStorage) openFileDirect(path string, mode int) (f *os.File, err error) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  6. cmd/storage-rest-client.go

    	values.Set(storageRESTLength, strconv.Itoa(len(buf)))
    	if verifier != nil {
    		values.Set(storageRESTBitrotAlgo, verifier.algorithm.String())
    		values.Set(storageRESTBitrotHash, hex.EncodeToString(verifier.sum))
    	} else {
    		values.Set(storageRESTBitrotAlgo, "")
    		values.Set(storageRESTBitrotHash, "")
    	}
    	respBody, err := client.call(ctx, storageRESTMethodReadFile, values, nil, -1)
    	if err != nil {
    		return 0, err
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 26.1K bytes
    - Viewed (0)
  7. cmd/test-utils_test.go

    	hm := hmac.New(sha1.New, []byte(secretAccessKey))
    	hm.Write([]byte(stringToSign))
    
    	// Calculate signature.
    	signature := base64.StdEncoding.EncodeToString(hm.Sum(nil))
    
    	query := req.URL.Query()
    	// Handle specially for Google Cloud Storage.
    	query.Set("AWSAccessKeyId", accessKeyID)
    	// Fill in Expires for presigned query.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  8. cmd/object-handlers_test.go

    		}
    	)
    
    	type ObjectInput struct {
    		objectName  string
    		partLengths []int64
    
    		metaData map[string]string
    	}
    
    	objectLength := func(oi ObjectInput) (sum int64) {
    		for _, l := range oi.partLengths {
    			sum += l
    		}
    		return
    	}
    
    	// set of inputs for uploading the objects before tests for
    	// downloading is done. Data bytes are from DummyDataGen.
    	objectInputs := []ObjectInput{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 160K bytes
    - Viewed (0)
  9. cmd/erasure.go

    		if di.RootDisk {
    			rootDiskCount++
    		}
    	}
    
    	// Count offline disks as well to ensure consistent
    	// reportability of offline drives on local setups.
    	if len(disksInfo) == (rootDiskCount + offlineDisks.Sum()) {
    		// Success.
    		return onlineDisks, offlineDisks
    	}
    
    	// Root disk should be considered offline
    	for i := range disksInfo {
    		ep := disksInfo[i].Endpoint
    		if disksInfo[i].RootDisk {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 16K bytes
    - Viewed (1)
  10. internal/logger/logger.go

    }
    
    // HashString - return the highway hash of the passed string
    func HashString(input string) string {
    	hh, _ := highwayhash.New(magicHighwayHash256Key)
    	hh.Write([]byte(input))
    	return hex.EncodeToString(hh.Sum(nil))
    }
    
    // LogAlwaysIf prints a detailed error message during
    // the execution of the server.
    func LogAlwaysIf(ctx context.Context, subsystem string, err error, errKind ...interface{}) {
    	if err == nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 12.4K bytes
    - Viewed (0)
Back to top