Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 50 for blocksize (0.04 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. cmd/storage-datatypes.go

    func (fi FileInfo) shardSize() int64 {
    	return ceilFrac(fi.Erasure.BlockSize, int64(fi.Erasure.DataBlocks))
    }
    
    // ShardFileSize - returns final erasure size from original size.
    func (fi FileInfo) ShardFileSize(totalLength int64) int64 {
    	if totalLength == 0 {
    		return 0
    	}
    	if totalLength == -1 {
    		return -1
    	}
    	numShards := totalLength / fi.Erasure.BlockSize
    	lastBlockSize := totalLength % fi.Erasure.BlockSize
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 17.4K bytes
    - Click Count (0)
  2. src/main/java/jcifs/smb/SmbFileOutputStream.java

                }
    
                int w;
                do {
                    final int blockSize = this.file.getType() == SmbConstants.TYPE_FILESYSTEM ? this.writeSizeFile : this.writeSize;
                    w = len > blockSize ? blockSize : len;
    
                    if (this.smb2) {
                        final Smb2WriteRequest wr = new Smb2WriteRequest(th.getConfig(), fh.getFileId());
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 12.8K bytes
    - Click Count (0)
  3. src/main/java/jcifs/smb/SmbFileInputStream.java

                int r, n;
                final int blockSize = type == SmbConstants.TYPE_FILESYSTEM ? this.readSizeFile : this.readSize;
    
                // Optimization: Use larger block sizes for better performance
                final int optimizedBlockSize = Math.min(blockSize * 2, 64 * 1024); // Cap at 64KB for memory efficiency
                final int effectiveBlockSize = Math.max(blockSize, optimizedBlockSize);
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 15.6K bytes
    - Click Count (0)
  4. cmd/xl-storage-free-version_test.go

    		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,
    				Algorithm:  HighwayHash256S,
    				Hash:       nil,
    			}},
    		},
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sat Mar 02 05:11:03 GMT 2024
    - 7.8K bytes
    - Click Count (0)
  5. cmd/erasure-metadata.go

    	if totalLength == -1 {
    		return -1
    	}
    	numShards := totalLength / e.BlockSize
    	lastBlockSize := totalLength % e.BlockSize
    	lastShardSize := ceilFrac(lastBlockSize, int64(e.DataBlocks))
    	return numShards*e.ShardSize() + lastShardSize
    }
    
    // ShardSize - returns actual shared size from erasure blockSize.
    func (e ErasureInfo) ShardSize() int64 {
    	return ceilFrac(e.BlockSize, int64(e.DataBlocks))
    }
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 21.3K bytes
    - Click Count (0)
  6. cmd/erasure-object.go

    	case size == 0:
    		buffer = make([]byte, 1) // Allocate at least a byte to reach EOF
    	case size >= fi.Erasure.BlockSize:
    		buffer = globalBytePoolCap.Load().Get()
    		defer globalBytePoolCap.Load().Put(buffer)
    	case size < fi.Erasure.BlockSize:
    		// No need to allocate fully blockSizeV1 buffer if the incoming data is smaller.
    		buffer = make([]byte, size, 2*size+int64(fi.Erasure.ParityBlocks+fi.Erasure.DataBlocks-1))
    	}
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Oct 24 04:05:31 GMT 2025
    - 80.4K bytes
    - Click Count (0)
  7. docs/debugging/xl-meta/main.go

    func shardSize(blockSize, dataBlocks int) (sz int) {
    	if dataBlocks == 0 {
    		// do nothing on invalid input
    		return sz
    	}
    	// Make denominator positive
    	if dataBlocks < 0 {
    		blockSize = -blockSize
    		dataBlocks = -dataBlocks
    	}
    	sz = blockSize / dataBlocks
    	if blockSize > 0 && blockSize%dataBlocks != 0 {
    		sz++
    	}
    	return sz
    }
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 40.4K bytes
    - Click Count (0)
  8. api/go1.24.txt

    pkg crypto/sha3, func SumSHAKE128([]uint8, int) []uint8 #69982
    pkg crypto/sha3, func SumSHAKE256([]uint8, int) []uint8 #69982
    pkg crypto/sha3, method (*SHA3) AppendBinary([]uint8) ([]uint8, error) #69982
    pkg crypto/sha3, method (*SHA3) BlockSize() int #69982
    pkg crypto/sha3, method (*SHA3) MarshalBinary() ([]uint8, error) #69982
    pkg crypto/sha3, method (*SHA3) Reset() #69982
    pkg crypto/sha3, method (*SHA3) Size() int #69982
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Tue Dec 17 21:28:29 GMT 2024
    - 14.2K bytes
    - Click Count (0)
  9. src/archive/tar/common.go

    // offsets and lengths that are multiples of blockSize.
    func alignSparseEntries(src []sparseEntry, size int64) []sparseEntry {
    	dst := src[:0]
    	for _, s := range src {
    		pos, end := s.Offset, s.endOffset()
    		pos += blockPadding(+pos) // Round-up to nearest blockSize
    		if end != size {
    			end -= blockPadding(-end) // Round-down to nearest blockSize
    		}
    		if pos < end {
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Tue Oct 07 19:46:36 GMT 2025
    - 24.5K bytes
    - Click Count (0)
  10. cmd/peer-rest-server.go

    		s.writeErrorResponse(w, errServerNotInitialized)
    		return
    	}
    
    	serial := r.Form.Get("serial") == "true"
    	blockSizeStr := r.Form.Get("blocksize")
    	fileSizeStr := r.Form.Get("filesize")
    
    	blockSize, err := strconv.ParseUint(blockSizeStr, 10, 64)
    	if err != nil {
    		blockSize = 4 * humanize.MiByte // default value
    	}
    
    	fileSize, err := strconv.ParseUint(fileSizeStr, 10, 64)
    	if err != nil {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 53.6K bytes
    - Click Count (0)
Back to Top