Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for uint64 (0.2 sec)

  1. cmd/xl-storage-disk-id-check.go

    	totalWrites           atomic.Uint64
    	totalDeletes          atomic.Uint64
    	totalErrsAvailability atomic.Uint64 // Captures all data availability errors such as faulty disk, timeout errors.
    	totalErrsTimeout      atomic.Uint64 // Captures all timeout only errors
    
    	// apiCalls should be placed first so alignment is guaranteed for atomic operations.
    	apiCalls     [storageMetricLast]uint64
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 33K bytes
    - Viewed (0)
  2. cmd/xl-storage.go

    	return dataUsageInfo, nil
    }
    
    func (s *xlStorage) getDeleteAttribute() uint64 {
    	attr := "user.total_deletes"
    	buf, err := xattr.LGet(s.formatFile, attr)
    	if err != nil {
    		// We start off with '0' if we can read the attributes
    		return 0
    	}
    	return binary.LittleEndian.Uint64(buf[:8])
    }
    
    func (s *xlStorage) getWriteAttribute() uint64 {
    	attr := "user.total_writes"
    	buf, err := xattr.LGet(s.formatFile, attr)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  3. cmd/storage-rest-server.go

    			_, err := io.ReadFull(respBody, tmp[:])
    			if err != nil {
    				return err
    			}
    			length := binary.LittleEndian.Uint32(tmp[:])
    			n, err := io.CopyBuffer(w, io.LimitReader(respBody, int64(length)), buf)
    			if err != nil {
    				return err
    			}
    			if n != int64(length) {
    				return io.ErrUnexpectedEOF
    			}
    			continue
    		case 32:
    			continue
    		default:
    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)
  4. cmd/object-handlers_test.go

    		// Unencrypted objects
    		{"nothing", []int64{0}, nil},
    		{"small-1", []int64{509}, nil},
    
    		{"mp-1", []int64{5 * oneMiB, 1}, nil},
    		{"mp-2", []int64{5487701, 5487799, 3}, nil},
    
    		// Encrypted object
    		{"enc-nothing", []int64{0}, mapCopy(metaWithSSEC)},
    		{"enc-small-1", []int64{509}, mapCopy(metaWithSSEC)},
    
    		{"enc-mp-1", []int64{5 * oneMiB, 1}, mapCopy(metaWithSSEC)},
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 160K bytes
    - Viewed (0)
  5. cmd/erasure-metadata.go

    // ShardFileSize - returns final erasure size from original size.
    func (e ErasureInfo) ShardFileSize(totalLength int64) int64 {
    	if totalLength == 0 {
    		return 0
    	}
    	if totalLength == -1 {
    		return -1
    	}
    	numShards := totalLength / e.BlockSize
    	lastBlockSize := totalLength % e.BlockSize
    	lastShardSize := ceilFrac(lastBlockSize, int64(e.DataBlocks))
    	return numShards*e.ShardSize() + lastShardSize
    }
    
    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)
  6. cmd/storage-rest-client.go

    		return nil, err
    	}
    	return respBody, nil
    }
    
    // ReadFile - reads section of a file.
    func (client *storageRESTClient) ReadFile(ctx context.Context, volume string, path string, offset int64, buf []byte, verifier *BitrotVerifier) (int64, error) {
    	values := make(url.Values)
    	values.Set(storageRESTVolume, volume)
    	values.Set(storageRESTFilePath, path)
    	values.Set(storageRESTOffset, strconv.Itoa(int(offset)))
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 26.1K bytes
    - Viewed (0)
  7. cni/pkg/ipset/nldeps_linux.go

    	"golang.org/x/sys/unix"
    )
    
    func RealNlDeps() NetlinkIpsetDeps {
    	return &realDeps{}
    }
    
    type realDeps struct{}
    
    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})
    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. cni/pkg/ipset/ipset.go

    	V6Name = "%s-v6"
    )
    
    type NetlinkIpsetDeps interface {
    	ipsetIPHashCreate(name string, v6 bool) error
    	destroySet(name string) error
    	addIP(name string, ip netip.Addr, ipProto uint8, comment string, replace bool) error
    	deleteIP(name string, ip netip.Addr, ipProto uint8) error
    	flush(name string) error
    	clearEntriesWithComment(name string, comment string) error
    	clearEntriesWithIP(name string, ip netip.Addr) error
    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)
  9. cni/pkg/nodeagent/net_test.go

    		Namespace: "bar",
    		UID:       "123",
    	}
    	podIP := netip.MustParseAddr("99.9.9.9")
    	podIPs := []netip.Addr{podIP}
    
    	fixture.ipsetDeps.On("addIP",
    		"foo-v4",
    		netip.MustParseAddr("99.9.9.9"),
    		uint8(unix.IPPROTO_TCP),
    		string(podMeta.UID),
    		true,
    	).Return(nil)
    
    	err := netServer.AddPodToMesh(ctx, &corev1.Pod{ObjectMeta: podMeta}, podIPs, "fakenetns")
    	assert.NoError(t, err)
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 16.4K bytes
    - Viewed (0)
  10. cni/pkg/ipset/nldeps_mock.go

    	args := m.Called(name)
    	return args.Error(0)
    }
    
    func (m *MockedIpsetDeps) addIP(name string, ip netip.Addr, ipProto uint8, comment string, replace bool) error {
    	args := m.Called(name, ip, ipProto, comment, replace)
    	return args.Error(0)
    }
    
    func (m *MockedIpsetDeps) deleteIP(name string, ip netip.Addr, ipProto uint8) error {
    	args := m.Called(name, ip, ipProto)
    	return args.Error(0)
    }
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 1.8K bytes
    - Viewed (0)
Back to top