Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 101 for sizeof (0.31 sec)

  1. cmd/os_unix.go

    	dirent := (*syscall.Dirent)(unsafe.Pointer(&buf[0]))
    	if v := unsafe.Offsetof(dirent.Reclen) + unsafe.Sizeof(dirent.Reclen); uintptr(len(buf)) < v {
    		return consumed, nil, typ, fmt.Errorf("buf size of %d smaller than dirent header size %d", len(buf), v)
    	}
    	if len(buf) < int(dirent.Reclen) {
    		return consumed, nil, typ, fmt.Errorf("buf size %d < record length %d", len(buf), dirent.Reclen)
    	}
    	consumed = int(dirent.Reclen)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  2. cmd/data-usage_test.go

    		{name: "rootfile", size: 10000},
    		{name: "rootfile2", size: 10000},
    		{name: "dir1/d1file", size: 2000},
    		{name: "dir2/d2file", size: 300},
    		{name: "dir2/d2file2", size: 300},
    		{name: "dir2/d2file3/", size: 300},
    		{name: "dir2/d2file4/", size: 300},
    		{name: "dir2/d2file5", size: 300},
    		{name: "dir1/dira/dafile", size: 100000},
    		{name: "dir1/dira/dbfile", size: 200000},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Mar 27 15:10:40 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  3. cmd/erasure-server-pool.go

    		p[i].Available = 0
    	}
    }
    
    // getAvailablePoolIdx will return an index that can hold size bytes.
    // -1 is returned if no serverPools have available space for the size given.
    func (z *erasureServerPools) getAvailablePoolIdx(ctx context.Context, bucket, object string, size int64) int {
    	serverPools := z.getServerPoolsAvailableSpace(ctx, bucket, object, size)
    	serverPools.FilterMaxUsed(100 - (100 * diskReserveFraction))
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 80.5K bytes
    - Viewed (0)
  4. cmd/metrics.go

    		// Total space used by bucket
    		ch <- prometheus.MustNewConstMetric(
    			prometheus.NewDesc(
    				prometheus.BuildFQName(bucketNamespace, "usage", "size"),
    				"Total bucket size",
    				[]string{"bucket"}, nil),
    			prometheus.GaugeValue,
    			float64(usageInfo.Size),
    			bucket,
    		)
    		ch <- prometheus.MustNewConstMetric(
    			prometheus.NewDesc(
    				prometheus.BuildFQName(bucketNamespace, "objects", "count"),
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 02 06:48:36 GMT 2024
    - 16.9K bytes
    - Viewed (0)
  5. docs/debugging/xl-meta/main.go

    				EcDist  []int
    				EcIndex int
    				EcM     int
    				EcN     int
    				Size    int
    			}
    		}
    		var ei erasureInfo
    		var idx int
    		if err := json.Unmarshal(meta, &ei); err == nil && ei.V2Obj != nil {
    			if size == 0 {
    				size = ei.V2Obj.Size
    				mapped = make([]byte, size)
    				filled = make([]byte, size)
    			}
    			data = ei.V2Obj.EcM
    			parity = ei.V2Obj.EcN
    			if shards == 0 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 17:56:22 GMT 2024
    - 20.2K bytes
    - Viewed (1)
  6. cmd/metrics-v2.go

    		Help:      "Distribution of object sizes in the bucket, includes label for the bucket name",
    		Type:      histogramMetric,
    	}
    }
    
    func getBucketObjectVersionsMD() MetricDescription {
    	return MetricDescription{
    		Namespace: bucketMetricNamespace,
    		Subsystem: objectsSubsystem,
    		Name:      versionDistribution,
    		Help:      "Distribution of object sizes in the bucket, includes label for the bucket name",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 22:01:31 GMT 2024
    - 132.6K bytes
    - Viewed (0)
  7. cmd/endpoint-ellipses.go

    	setIndexes  [][]uint64 // All the sets.
    }
    
    // Supported set sizes this is used to find the optimal
    // single set size.
    var setSizes = []uint64{2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}
    
    // getDivisibleSize - returns a greatest common divisor of
    // all the ellipses sizes.
    func getDivisibleSize(totalSizes []uint64) (result uint64) {
    	gcd := func(x, y uint64) uint64 {
    		for y != 0 {
    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)
  8. cmd/object-api-datatypes.go

    	// Name of the bucket.
    	Bucket string
    
    	// Name of the object.
    	Name string
    
    	// Date and time when the object was last modified.
    	ModTime time.Time
    
    	// Total object size.
    	Size int64
    
    	// Actual size is the real size of the object uploaded by client.
    	ActualSize *int64
    
    	// IsDir indicates if the object is prefix.
    	IsDir bool
    
    	// Hex encoded unique entity tag of the object.
    	ETag string
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 20.8K bytes
    - Viewed (0)
  9. cmd/erasure-decode_test.go

    	b.Run(" X0|X0 ", func(b *testing.B) { benchmarkErasureDecode(2, 2, 1, 1, size, b) })
    }
    
    func BenchmarkErasureDecode_4_64KB(b *testing.B) {
    	const size = 64 * 1024
    	b.Run(" 00|00 ", func(b *testing.B) { benchmarkErasureDecode(2, 2, 0, 0, size, b) })
    	b.Run(" 00|X0 ", func(b *testing.B) { benchmarkErasureDecode(2, 2, 0, 1, size, b) })
    	b.Run(" X0|00 ", func(b *testing.B) { benchmarkErasureDecode(2, 2, 1, 0, size, b) })
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 21.1K bytes
    - Viewed (1)
  10. cmd/data-usage-utils.go

    }
    
    // BucketUsageInfo - bucket usage info provides
    // - total size of the bucket
    // - total objects in a bucket
    // - object size histogram per bucket
    type BucketUsageInfo struct {
    	Size uint64 `json:"size"`
    	// Following five fields suffixed with V1 are here for backward compatibility
    	// Total Size for objects that have not yet been replicated
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Mar 10 09:15:15 GMT 2024
    - 6.4K bytes
    - Viewed (0)
Back to top