Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for reedsolomon (0.13 sec)

  1. cmd/erasure-coding.go

    	if dataBlocks <= 0 || parityBlocks < 0 {
    		return e, reedsolomon.ErrInvShardNum
    	}
    
    	if dataBlocks+parityBlocks > 256 {
    		return e, reedsolomon.ErrMaxShardNum
    	}
    
    	e = Erasure{
    		dataBlocks:   dataBlocks,
    		parityBlocks: parityBlocks,
    		blockSize:    blockSize,
    	}
    
    	// Encoder when needed.
    	var enc reedsolomon.Encoder
    	var once sync.Once
    	e.encoder = func() reedsolomon.Encoder {
    		once.Do(func() {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jan 31 02:11:45 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  2. cmd/erasure-utils.go

    	if offset < 0 || length < 0 {
    		return 0, errUnexpected
    	}
    
    	// Do we have enough blocks?
    	if len(enBlocks) < dataBlocks {
    		return 0, reedsolomon.ErrTooFewShards
    	}
    
    	// Do we have enough data?
    	if int64(getDataBlockLen(enBlocks, dataBlocks)) < length {
    		return 0, reedsolomon.ErrShortData
    	}
    
    	// Counter to decrement total left to write.
    	write := length
    
    	// Counter to increment total written.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jan 31 02:11:45 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. internal/bpool/bpool.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package bpool
    
    import (
    	"github.com/klauspost/reedsolomon"
    )
    
    // BytePoolCap implements a leaky pool of []byte in the form of a bounded channel.
    type BytePoolCap struct {
    	c    chan []byte
    	w    int
    	wcap int
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 29 01:40:52 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. cmd/storage-datatypes_test.go

    	var buf bytes.Buffer
    	msgp.Encode(&buf, &v)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 9.4K bytes
    - Viewed (0)
  5. cmd/xl-storage-format-v2_string.go

    }
    func _() {
    	// An "invalid array index" compiler error signifies that the constant values have changed.
    	// Re-run the stringer command to generate them again.
    	var x [1]struct{}
    	_ = x[invalidErasureAlgo-0]
    	_ = x[ReedSolomon-1]
    	_ = x[lastErasureAlgo-2]
    }
    
    const _ErasureAlgo_name = "invalidErasureAlgoReedSolomonlastErasureAlgo"
    
    var _ErasureAlgo_index = [...]uint8{0, 18, 29, 44}
    
    func (i ErasureAlgo) String() string {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Dec 02 19:29:16 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  6. cmd/xl-storage-format-utils_test.go

    		XLV1:             false,
    		ModTime:          time.Now().UTC(),
    		Size:             0,
    		Mode:             0,
    		Metadata:         nil,
    		Parts:            nil,
    		Erasure: ErasureInfo{
    			Algorithm:    ReedSolomon.String(),
    			DataBlocks:   4,
    			ParityBlocks: 2,
    			BlockSize:    10000,
    			Index:        1,
    			Distribution: []int{1, 2, 3, 4, 5, 6, 7, 8},
    			Checksums: []ChecksumInfo{{
    				PartNumber: 1,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  7. cmd/xl-storage-free-version_test.go

    		XLV1:             false,
    		ModTime:          time.Now(),
    		Size:             0,
    		Mode:             0,
    		Metadata:         nil,
    		Parts:            nil,
    		Erasure: ErasureInfo{
    			Algorithm:    ReedSolomon.String(),
    			DataBlocks:   4,
    			ParityBlocks: 2,
    			BlockSize:    10000,
    			Index:        1,
    			Distribution: []int{1, 2, 3, 4, 5, 6, 7, 8},
    			Checksums: []ChecksumInfo{{
    				PartNumber: 1,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Mar 02 05:11:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  8. docs/debugging/xl-meta/main.go

    	"regexp"
    	"sort"
    	"strconv"
    	"strings"
    	"time"
    	"unicode/utf8"
    
    	"github.com/google/uuid"
    	"github.com/klauspost/compress/zip"
    	"github.com/klauspost/filepathx"
    	"github.com/klauspost/reedsolomon"
    	"github.com/minio/cli"
    	"github.com/minio/highwayhash"
    	"github.com/tinylib/msgp/msgp"
    )
    
    func main() {
    	app := cli.NewApp()
    	app.Copyright = "MinIO, Inc."
    	app.Usage = "xl.meta to JSON"
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 05 11:57:44 UTC 2024
    - 40.3K bytes
    - Viewed (0)
  9. go.mod

    	github.com/klauspost/compress v1.17.10
    	github.com/klauspost/cpuid/v2 v2.2.8
    	github.com/klauspost/filepathx v1.1.1
    	github.com/klauspost/pgzip v1.2.6
    	github.com/klauspost/readahead v1.4.0
    	github.com/klauspost/reedsolomon v1.12.4
    	github.com/lib/pq v1.10.9
    	github.com/lithammer/shortuuid/v4 v4.0.0
    	github.com/miekg/dns v1.1.62
    	github.com/minio/cli v1.24.2
    	github.com/minio/console v1.7.1
    	github.com/minio/csvparser v1.0.0
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  10. cmd/xl-storage-format_test.go

    func newTestXLMetaV1() xlMetaV1Object {
    	xlMeta := xlMetaV1Object{}
    	xlMeta.Version = xlMetaVersion101
    	xlMeta.Format = xlMetaFormat
    	xlMeta.Minio.Release = "test"
    	xlMeta.Erasure = ErasureInfo{
    		Algorithm:    "klauspost/reedsolomon/vandermonde",
    		DataBlocks:   5,
    		ParityBlocks: 5,
    		BlockSize:    10485760,
    		Index:        10,
    		Distribution: []int{9, 10, 1, 2, 3, 4, 5, 6, 7, 8},
    	}
    	xlMeta.Stat = StatInfo{
    		Size:    int64(20),
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 17.6K bytes
    - Viewed (0)
Back to top