Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 237 for Block (0.15 sec)

  1. src/archive/tar/reader.go

    	return paxHdrs, nil
    }
    
    // readHeader reads the next block header and assumes that the underlying reader
    // is already aligned to a block boundary. It returns the raw block of the
    // header in case further processing is required.
    //
    // The err will be set to io.EOF only when one of the following occurs:
    //   - Exactly 0 bytes are read and EOF is hit.
    //   - Exactly 1 block of zeros is read and EOF is hit.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  2. cmd/metacache-set.go

    	return pathJoin(bucketMetaPrefix, bucket, metacachePrefix, id)
    }
    
    // objectPath returns the object path of the cache.
    func (o *listPathOptions) objectPath(block int) string {
    	return pathJoin(metacachePrefixForID(o.Bucket, o.ID), "block-"+strconv.Itoa(block)+".s2")
    }
    
    func (o *listPathOptions) SetFilter() {
    	switch {
    	case metacacheSharePrefix:
    		return
    	case o.Prefix == o.BaseDir:
    		// No additional prefix
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 19:52:52 GMT 2024
    - 30.4K bytes
    - Viewed (0)
  3. cmd/erasure-decode.go

    	var bytesWritten int64
    	var bufs [][]byte
    	for block := startBlock; block <= endBlock; block++ {
    		var blockOffset, blockLength int64
    		switch {
    		case startBlock == endBlock:
    			blockOffset = offset % e.blockSize
    			blockLength = length
    		case block == startBlock:
    			blockOffset = offset % e.blockSize
    			blockLength = e.blockSize - blockOffset
    		case block == endBlock:
    			blockOffset = 0
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 16:44:59 GMT 2024
    - 9.4K bytes
    - Viewed (0)
  4. cmd/namespace-lock.go

    	timeout.LogSuccess(UTCNow().Sub(start))
    	return LockContext{ctx: newCtx, cancel: cancel}, nil
    }
    
    // Unlock - block until write lock is released.
    func (di *distLockInstance) Unlock(lc LockContext) {
    	if lc.cancel != nil {
    		lc.cancel()
    	}
    	di.rwMutex.Unlock(lc.ctx)
    }
    
    // RLock - block until read lock is taken or timeout has occurred.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Jun 05 23:56:35 GMT 2023
    - 9.2K bytes
    - Viewed (0)
  5. cmd/veeam-sos-api.go

    //     slots are used for object offloading or writing)
    //
    //   - <KbBlockSize>
    //     Veeam Block Size for backup and restore processing before compression is applied. The higher the block size, the more
    //     backup space is needed for incremental backups. Larger block sizes also mean less performance for random read restore
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jan 30 18:43:58 GMT 2024
    - 8.2K bytes
    - Viewed (2)
  6. cmd/metacache-stream.go

    			buf.Reset()
    			bytebufferpool.Put(buf)
    		}()
    
    		block := newMetacacheWriter(buf, 1<<20)
    		defer block.Close()
    		finishBlock := func() {
    			if err := block.Close(); err != nil {
    				w.streamErr = err
    				return
    			}
    			current.data = buf.Bytes()
    			w.streamErr = nextBlock(&current)
    			// Prepare for next
    			current.n++
    			buf.Reset()
    			block.Reset(buf)
    			current.First = ""
    		}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  7. tests/transaction_test.go

    		t.Fatalf("Transaction return error will equal the block returns error")
    	}
    
    	if err := DB.First(&User{}, "name = ?", "transaction-block").Error; err == nil {
    		t.Fatalf("Should not find record after rollback")
    	}
    
    	// commit
    	DB.Transaction(func(tx *gorm.DB) error {
    		user := *GetUser("transaction-block-2", Config{})
    		if err := tx.Save(&user).Error; err != nil {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Sat Jun 10 13:05:19 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  8. internal/s3select/json/preader.go

    type PReader struct {
    	args        *ReaderArgs
    	readCloser  io.ReadCloser   // raw input
    	buf         *bufio.Reader   // input to the splitter
    	current     []jstream.KVS   // current block of results to be returned
    	recordsRead int             // number of records read in current slice
    	input       chan *queueItem // input for workers
    	queue       chan *queueItem // output from workers in order
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Mar 05 04:57:35 GMT 2023
    - 6.4K bytes
    - Viewed (0)
  9. cmd/xl-storage-format-v1.go

    	DataBlocks int `json:"data"`
    	// ParityBlocks is the number of parity blocks for erasure-coding
    	ParityBlocks int `json:"parity"`
    	// BlockSize is the size of one erasure-coded block
    	BlockSize int64 `json:"blockSize"`
    	// Index is the index of the current disk
    	Index int `json:"index"`
    	// Distribution is the distribution of the data and parity blocks
    	Distribution []int `json:"distribution"`
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  10. istioctl/pkg/writer/compare/sds/util.go

    	}
    
    	return secret, nil
    }
    
    func secretMetaFromCert(rawCert []byte) (SecretMeta, error) {
    	block, _ := pem.Decode(rawCert)
    	if block == nil {
    		return SecretMeta{}, fmt.Errorf("failed to parse certificate PEM")
    	}
    	cert, err := x509.ParseCertificate(block.Bytes)
    	if err != nil {
    		return SecretMeta{}, err
    	}
    	var certType string
    	if cert.IsCA {
    		certType = "CA"
    	} else {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Jun 06 15:14:48 GMT 2023
    - 6.6K bytes
    - Viewed (0)
Back to top