Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for enforceBucketQuotaHard (0.26 sec)

  1. cmd/bucket-quota.go

    		bui := sys.GetBucketUsageInfo(ctx, bucket)
    		if bui.Size > 0 && ((bui.Size + uint64(size)) >= quotaSize) {
    			return BucketQuotaExceeded{Bucket: bucket}
    		}
    	}
    
    	return nil
    }
    
    func enforceBucketQuotaHard(ctx context.Context, bucket string, size int64) error {
    	if globalBucketQuotaSys == nil {
    		return nil
    	}
    	return globalBucketQuotaSys.enforceQuotaHard(ctx, bucket, size)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 00:34:56 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  2. cmd/object-multipart-handlers.go

    	defer gr.Close()
    	srcInfo := gr.ObjInfo
    
    	actualPartSize, err := srcInfo.GetActualSize()
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	if err := enforceBucketQuotaHard(ctx, dstBucket, actualPartSize); err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	// Special care for CopyObjectPart
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Aug 31 18:25:48 UTC 2024
    - 39.2K bytes
    - Viewed (0)
  3. cmd/object-handlers.go

    	actualSize, err := srcInfo.GetActualSize()
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    	length := actualSize
    
    	if !cpSrcDstSame {
    		if err := enforceBucketQuotaHard(ctx, dstBucket, actualSize); err != nil {
    			writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    			return
    		}
    	}
    
    	var compressMetadata map[string]string
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 05 05:16:15 UTC 2024
    - 117.4K bytes
    - Viewed (0)
Back to top