Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for Hash (0.17 sec)

  1. cmd/erasure-metadata.go

    			h.Reset()
    		}
    	}
    
    	metaHashCountMap := make(map[string]int)
    	for _, hash := range metaHashes {
    		if hash == "" {
    			continue
    		}
    		metaHashCountMap[hash]++
    	}
    
    	maxHash := ""
    	maxCount := 0
    	for hash, count := range metaHashCountMap {
    		if count > maxCount {
    			maxCount = count
    			maxHash = hash
    		}
    	}
    
    	if maxCount < quorum {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 19.2K bytes
    - Viewed (1)
  2. cmd/erasure-multipart.go

    				return oi, InvalidPart{
    					PartNumber: part.PartNumber,
    				}
    			}
    			wantCS := map[string]string{
    				hash.ChecksumCRC32.String():  part.ChecksumCRC32,
    				hash.ChecksumCRC32C.String(): part.ChecksumCRC32C,
    				hash.ChecksumSHA1.String():   part.ChecksumSHA1,
    				hash.ChecksumSHA256.String(): part.ChecksumSHA256,
    			}
    			if wantCS[checksumType.String()] != crc {
    				return oi, InvalidPart{
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 43K bytes
    - Viewed (0)
  3. cni/pkg/ipset/nldeps_linux.go

    func (m *realDeps) ipsetIPHashCreate(name string, v6 bool) error {
    	var family uint8
    
    	if v6 {
    		family = unix.AF_INET6
    	} else {
    		family = unix.AF_INET
    	}
    	err := netlink.IpsetCreate(name, "hash:ip", netlink.IpsetCreateOptions{Comments: true, Replace: true, Family: family})
    	if ipsetErr, ok := err.(nl.IPSetError); ok && ipsetErr == nl.IPSET_ERR_EXIST {
    		return nil
    	}
    
    	return err
    }
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableSet.java

          int hash = element.hashCode();
          for (int j = Hashing.smear(hash); ; j++) {
            int index = j & mask;
            Object value = table[index];
            if (value == null) {
              // Came to an empty slot. Put the element here.
              elements[uniques++] = element;
              table[index] = element;
              hashCode += hash;
              break;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Sets.java

            adjust = ~~adjust;
            // in GWT, we have to deal with integer overflow carefully
          }
          int hash = 1;
          for (Set<E> axis : axes) {
            hash = 31 * hash + (size() / axis.size() * axis.hashCode());
    
            hash = ~~hash;
          }
          hash += adjust;
          return ~~hash;
        }
      }
    
      /**
       * Returns the set of all possible subsets of {@code set}. For example, {@code
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  6. cmd/erasure-server-pool-rebalance.go

    		parts := make([]CompletePart, len(oi.Parts))
    		for i, part := range oi.Parts {
    			hr, err := hash.NewReader(ctx, io.LimitReader(gr, part.Size), part.Size, "", "", part.ActualSize)
    			if err != nil {
    				return fmt.Errorf("rebalanceObject: hash.NewReader() %w", err)
    			}
    			pi, err := z.PutObjectPart(ctx, bucket, oi.Name, res.UploadID,
    				part.Number,
    				NewPutObjReader(hr),
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 19:29:28 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  7. cni/pkg/ipset/ipset.go

    	clearEntriesWithIP(name string, ip netip.Addr) error
    	listEntriesByIP(name string) ([]netip.Addr, error)
    }
    
    // TODO this should actually create v6 and v6 subsets of type `hash:ip`, add them both to a
    // superset of type `list:set` - we can then query the superset directly in iptables (with the same rule),
    // and iptables will be smart enough to pick the correct underlying set (v4 or v6, based on context),
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  8. cmd/metacache-set.go

    	"github.com/minio/minio/internal/bucket/object/lock"
    	"github.com/minio/minio/internal/bucket/versioning"
    	"github.com/minio/minio/internal/color"
    	"github.com/minio/minio/internal/hash"
    	xioutil "github.com/minio/minio/internal/ioutil"
    	"github.com/minio/pkg/v2/console"
    )
    
    //go:generate msgp -file $GOFILE -unexported
    
    type listPathOptions struct {
    	// ID of the listing.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 19:52:52 GMT 2024
    - 30.4K bytes
    - Viewed (0)
  9. cmd/storage-rest-server.go

    	if r.Form.Get(storageRESTBitrotAlgo) != "" {
    		hashStr := r.Form.Get(storageRESTBitrotHash)
    		var hash []byte
    		hash, err = hex.DecodeString(hashStr)
    		if err != nil {
    			s.writeErrorResponse(w, err)
    			return
    		}
    		verifier = NewBitrotVerifier(BitrotAlgorithmFromString(r.Form.Get(storageRESTBitrotAlgo)), hash)
    	}
    	buf := make([]byte, length)
    	defer metaDataPoolPut(buf) // Reuse if we can.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 44.8K bytes
    - Viewed (0)
  10. cmd/erasure-object.go

    	"github.com/minio/minio/internal/config/storageclass"
    	"github.com/minio/minio/internal/crypto"
    	"github.com/minio/minio/internal/event"
    	"github.com/minio/minio/internal/grid"
    	"github.com/minio/minio/internal/hash"
    	xhttp "github.com/minio/minio/internal/http"
    	xioutil "github.com/minio/minio/internal/ioutil"
    	"github.com/minio/minio/internal/logger"
    	"github.com/minio/pkg/v2/mimedb"
    	"github.com/minio/pkg/v2/sync/errgroup"
    )
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 76.9K bytes
    - Viewed (2)
Back to top