Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 18 of 18 for GetActualSize (0.1 sec)

  1. cmd/erasure-server-pool-rebalance.go

    	oi := gr.ObjInfo
    
    	defer func() {
    		gr.Close()
    		auditLogRebalance(ctx, "RebalanceCopyData", oi.Bucket, oi.Name, oi.VersionID, err)
    	}()
    
    	actualSize, err := oi.GetActualSize()
    	if err != nil {
    		return err
    	}
    
    	if oi.isMultipart() {
    		res, err := z.NewMultipartUpload(ctx, bucket, oi.Name, ObjectOptions{
    			VersionID:    oi.VersionID,
    			UserDefined:  oi.UserDefined,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 13:20:19 UTC 2024
    - 28.4K bytes
    - Viewed (0)
  2. cmd/erasure-healing.go

    			latestMeta.Erasure.ParityBlocks, latestMeta.Erasure.BlockSize)
    		if err != nil {
    			return result, err
    		}
    	}
    
    	result.ObjectSize, err = latestMeta.ToObjectInfo(bucket, object, true).GetActualSize()
    	if err != nil {
    		return result, err
    	}
    
    	// Loop to find number of disks with valid data, per-drive
    	// data state and a list of outdated disks on which data needs
    	// to be healed.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Oct 02 17:50:41 UTC 2024
    - 34.4K bytes
    - Viewed (0)
  3. cmd/batch-handlers.go

    	}
    	rd, err := api.GetObjectNInfo(ctx, srcBucket, srcObject, nil, http.Header{}, opts)
    	if err != nil {
    		return err
    	}
    	defer rd.Close()
    	objInfo := rd.ObjInfo
    
    	size, err := objInfo.GetActualSize()
    	if err != nil {
    		return err
    	}
    
    	putOpts, err := batchReplicationOpts(ctx, "", objInfo)
    	if err != nil {
    		return err
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 18 15:32:09 UTC 2024
    - 62.2K bytes
    - Viewed (0)
  4. cmd/bucket-lifecycle.go

    func NewLifecycleSys() *LifecycleSys {
    	return &LifecycleSys{}
    }
    
    func ilmTrace(startTime time.Time, duration time.Duration, oi ObjectInfo, event string, metadata map[string]string, err string) madmin.TraceInfo {
    	sz, _ := oi.GetActualSize()
    	return madmin.TraceInfo{
    		TraceType: madmin.TraceILM,
    		Time:      startTime,
    		NodeName:  globalLocalNodeName,
    		FuncName:  event,
    		Duration:  duration,
    		Path:      pathJoin(oi.Bucket, oi.Name),
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Oct 23 15:35:37 UTC 2024
    - 33.7K bytes
    - Viewed (0)
  5. cmd/erasure-server-pool-decom.go

    	objInfo := gr.ObjInfo
    
    	defer func() {
    		gr.Close()
    		auditLogDecom(ctx, "DecomCopyData", objInfo.Bucket, objInfo.Name, objInfo.VersionID, err)
    	}()
    
    	actualSize, err := objInfo.GetActualSize()
    	if err != nil {
    		return err
    	}
    
    	if objInfo.isMultipart() {
    		res, err := z.NewMultipartUpload(ctx, bucket, objInfo.Name, ObjectOptions{
    			VersionID:    objInfo.VersionID,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 13:20:19 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  6. cmd/data-scanner.go

    		return res.ObjectSize
    	}
    	return 0
    }
    
    func (i *scannerItem) applyLifecycle(ctx context.Context, o ObjectLayer, oi ObjectInfo) (action lifecycle.Action, size int64) {
    	size, err := oi.GetActualSize()
    	if i.debug {
    		scannerLogIf(ctx, err)
    	}
    	if i.lifeCycle == nil {
    		return action, size
    	}
    
    	versionID := oi.VersionID
    
    	var vc *versioning.Versioning
    	var lr objectlock.Retention
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 21:10:34 UTC 2024
    - 48.4K bytes
    - Viewed (0)
  7. cmd/xl-storage.go

    			done()
    
    			// DeleteAllVersionsAction: The object and all its
    			// versions are expired and
    			// doesn't contribute toward data usage.
    			if objDeleted {
    				break
    			}
    			actualSz, err := oi.GetActualSize()
    			if err != nil {
    				continue
    			}
    
    			if oi.DeleteMarker {
    				sizeS.deleteMarkers++
    			}
    			if oi.VersionID != "" && sz == actualSz {
    				sizeS.versions++
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
  8. cmd/object-handlers_test.go

    		if err != nil {
    			t.Fatalf("Object: %s Object Index %d: Unexpected err: %v", object, oindex, err)
    		}
    
    		rs := partNumberToRangeSpec(oinfo, partNumber)
    		size, err := oinfo.GetActualSize()
    		if err != nil {
    			t.Fatalf("Object: %s Object Index %d: Unexpected err: %v", object, oindex, err)
    		}
    
    		off, length, err := rs.GetOffsetLength(size)
    		if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 20:10:44 UTC 2024
    - 163.2K bytes
    - Viewed (0)
Back to top