Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 639 for erasure (0.08 sec)

  1. cmd/erasure.go

    	// Put all buckets into channel.
    	bucketCh := make(chan BucketInfo, len(buckets))
    
    	// Shuffle buckets to ensure total randomness of buckets, being scanned.
    	// Otherwise same set of buckets get scanned across erasure sets always.
    	// at any given point in time. This allows different buckets to be scanned
    	// in different order per erasure set, this wider spread is needed when
    	// there are lots of buckets with different order of objects in them.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 22:23:33 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  2. cmd/erasure-coding.go

    	"github.com/minio/minio/internal/logger"
    )
    
    // Erasure - erasure encoding details.
    type Erasure struct {
    	encoder                  func() reedsolomon.Encoder
    	dataBlocks, parityBlocks int
    	blockSize                int64
    }
    
    // NewErasure creates a new ErasureStorage.
    func NewErasure(ctx context.Context, dataBlocks, parityBlocks int, blockSize int64) (e Erasure, err error) {
    	// Check the parameters for sanity now.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jan 31 02:11:45 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  3. docs/screenshots/erasure-code.png

    erasure-code.png...
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Feb 21 04:12:21 UTC 2017
    - 220.7K bytes
    - Viewed (0)
  4. docs/screenshots/erasure-code.jpg

    erasure-code.jpg...
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jun 29 16:10:47 UTC 2017
    - 105.7K bytes
    - Viewed (0)
  5. cmd/erasure-metadata.go

    // ShardSize - returns actual shared size from erasure blockSize.
    func (e ErasureInfo) ShardSize() int64 {
    	return ceilFrac(e.BlockSize, int64(e.DataBlocks))
    }
    
    // IsValid - tells if erasure info fields are valid.
    func (fi FileInfo) IsValid() bool {
    	if fi.Deleted {
    		// Delete marker has no data, no need to check
    		// for erasure coding information
    		return true
    	}
    	dataBlocks := fi.Erasure.DataBlocks
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  6. cmd/erasure-metadata_test.go

    		fi.Size = 1 << 20
    		metaArr := make([]FileInfo, N)
    		parities := make([]int, N)
    		for i := range N {
    			fi.Erasure.Index = i + 1
    			metaArr[i] = fi
    			parities[i] = parity
    			if i < agree {
    				continue
    			}
    			metaArr[i].Erasure.Index = 0 // creates invalid fi on remaining drives
    			parities[i] = -1             // invalid fi are assigned parity -1
    		}
    		res.metaArr = metaArr
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jul 25 21:02:50 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  7. cmd/erasure-decode.go

    	shardSize     int64
    	shardFileSize int64
    	buf           [][]byte
    	readerToBuf   []int
    	stashBuffer   []byte
    }
    
    // newParallelReader returns parallelReader.
    func newParallelReader(readers []io.ReaderAt, e Erasure, offset, totalLength int64) *parallelReader {
    	r2b := make([]int, len(readers))
    	for i := range r2b {
    		r2b[i] = i
    	}
    	bufs := make([][]byte, len(readers))
    	shardSize := int(e.ShardSize())
    	var b []byte
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 29 01:40:52 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  8. cmd/erasure-object_test.go

    	_, err = xl.PutObject(ctx, "bucket", "dir/obj", mustGetPutObjReader(t, bytes.NewReader([]byte("abcd")), int64(len("abcd")), "", ""), ObjectOptions{})
    	if err != nil {
    		t.Fatalf("Erasure Object upload failed: <ERROR> %s", err)
    	}
    	for _, test := range testCases {
    		test := test
    		t.Run("", func(t *testing.T) {
    			_, err := xl.GetObjectInfo(ctx, "bucket", "dir/obj", ObjectOptions{})
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jan 30 20:43:25 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  9. cmd/erasure-healing-common.go

    	for i, meta := range partsMetadata {
    		if !meta.IsValid() {
    			// Since for majority of the cases erasure.Index matches with erasure.Distribution we can
    			// consider the offline disks as consistent.
    			continue
    		}
    		if !meta.Deleted {
    			if len(meta.Erasure.Distribution) != len(onlineDisks) {
    				// Erasure distribution seems to have lesser
    				// number of items than number of online disks.
    				inconsistent++
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  10. cmd/erasure-healing.go

    		errs, latestMeta, filterDisksByETag, bucket, object, scanMode)
    
    	var erasure Erasure
    	if !latestMeta.Deleted && !latestMeta.IsRemote() {
    		// Initialize erasure coding
    		erasure, err = NewErasure(ctx, latestMeta.Erasure.DataBlocks,
    			latestMeta.Erasure.ParityBlocks, latestMeta.Erasure.BlockSize)
    		if err != nil {
    			return result, err
    		}
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Oct 02 17:50:41 UTC 2024
    - 34.4K bytes
    - Viewed (0)
Back to top