Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ShardFileSize (0.07 sec)

  1. cmd/erasure-object.go

    	var inlineBuffers []*bytes.Buffer
    	if globalStorageClass.ShouldInline(erasure.ShardFileSize(data.ActualSize()), opts.Versioned) {
    		inlineBuffers = make([]*bytes.Buffer, len(onlineDisks))
    	}
    
    	shardFileSize := erasure.ShardFileSize(data.Size())
    	writers := make([]io.Writer, len(onlineDisks))
    	for i, disk := range onlineDisks {
    		if disk == nil {
    			continue
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  2. cmd/xl-storage.go

    		// - object has maximum of 1 parts
    		if attemptInline {
    			inlineBlock := globalStorageClass.InlineBlock()
    			if inlineBlock <= 0 {
    				inlineBlock = 128 * humanize.KiByte
    			}
    
    			canInline := fi.ShardFileSize(fi.Parts[0].ActualSize) <= inlineBlock
    			if canInline {
    				dataPath := pathJoin(volumeDir, path, fi.DataDir, fmt.Sprintf("part.%d", fi.Parts[0].Number))
    				fi.Data, err = s.readAllData(ctx, volume, volumeDir, dataPath)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
Back to top