Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 91 for xioutil (0.04 sec)

  1. cmd/perf-tests.go

    						errOnce.Do(func() {
    							retError = err.Error()
    						})
    					}
    					downloadsCancel()
    					return
    				}
    				fbr := firstByteRecorder{
    					r: r,
    				}
    				n, err := xioutil.Copy(xioutil.Discard, &fbr)
    				r.Close()
    				if err == nil {
    					response := time.Since(t)
    					ttfb := time.Since(*fbr.t)
    					// Only capture success criteria - do not
    					// have to capture failed reads, truncated
    Registered: 2025-05-25 19:28
    - Last Modified: 2025-03-30 00:56
    - 11.7K bytes
    - Viewed (0)
  2. cmd/xl-storage-disk-id-check.go

    	if contextCanceled(ctx) {
    		xioutil.SafeClose(updates)
    		return dataUsageCache{}, ctx.Err()
    	}
    
    	if err := p.checkDiskStale(); err != nil {
    		xioutil.SafeClose(updates)
    		return dataUsageCache{}, err
    	}
    
    	weSleep := func() bool {
    		return scannerIdleMode.Load() == 0
    	}
    
    Registered: 2025-05-25 19:28
    - Last Modified: 2025-04-25 05:41
    - 34.5K bytes
    - Viewed (0)
  3. internal/grid/muxserver.go

    }
    
    func (m *muxServer) close() {
    	m.cancel()
    	m.recvMu.Lock()
    	defer m.recvMu.Unlock()
    
    	if m.inbound != nil {
    		xioutil.SafeClose(m.inbound)
    		m.inbound = nil
    	}
    
    	if m.outBlock != nil {
    		xioutil.SafeClose(m.outBlock)
    		m.outBlock = nil
    	}
    Registered: 2025-05-25 19:28
    - Last Modified: 2025-02-18 16:25
    - 9.7K bytes
    - Viewed (0)
  4. cmd/untar.go

    			// ignore symlink'ed
    			continue
    		}
    		if o.prefixAll != "" {
    			name = pathJoin(o.prefixAll, name)
    		}
    
    		// Do small files async
    		n++
    		if header.Size <= xioutil.MediumBlock {
    			asyncWriters <- struct{}{}
    			bufp := xioutil.ODirectPoolMedium.Get()
    			b := (*bufp)[:header.Size]
    			if _, err := io.ReadFull(tarReader, b); err != nil {
    				return err
    			}
    			wg.Add(1)
    Registered: 2025-05-25 19:28
    - Last Modified: 2025-02-18 16:25
    - 6K bytes
    - Viewed (2)
  5. cmd/warm-backend-gcs.go

    	w := object.NewWriter(ctx)
    	if gcs.StorageClass != "" {
    		w.StorageClass = gcs.StorageClass
    	}
    	w.Metadata = meta
    	if _, err := xioutil.Copy(w, data); err != nil {
    		return "", gcsToObjectError(err, gcs.Bucket, key)
    	}
    
    	if _, err := xioutil.Copy(w, data); err != nil {
    		return "", gcsToObjectError(err, gcs.Bucket, key)
    	}
    
    	return "", w.Close()
    }
    
    Registered: 2025-05-25 19:28
    - Last Modified: 2025-03-30 00:56
    - 6.1K bytes
    - Viewed (0)
  6. cmd/bitrot.go

    	// Calculate the size of the bitrot file and compare
    	// it with the actual file size.
    	if left != bitrotShardFileSize(partSize, shardSize, algo) {
    		return errFileCorrupt
    	}
    
    	bufp := xioutil.ODirectPoolSmall.Get()
    	defer xioutil.ODirectPoolSmall.Put(bufp)
    
    	for left > 0 {
    		// Read expected hash...
    		h.Reset()
    		n, err := io.ReadFull(r, hashBuf)
    		if err != nil {
    Registered: 2025-05-25 19:28
    - Last Modified: 2025-02-26 19:26
    - 7.7K bytes
    - Viewed (0)
  7. internal/logger/logrotate.go

    	opts Options
    
    	// f is the currently open file used for appends.
    	// Writes to f are only synchronized once Close() is called,
    	// or when files are being rotated.
    	f *os.File
    
    	pw *xioutil.PipeWriter
    	pr *xioutil.PipeReader
    }
    
    // Write writes p into the current file, rotating if necessary.
    // Write is non-blocking, if the writer's queue is not full.
    // Write is blocking otherwise.
    Registered: 2025-05-25 19:28
    - Last Modified: 2025-03-30 00:56
    - 5.8K bytes
    - Viewed (0)
  8. internal/store/store.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package store
    
    import (
    	"context"
    	"errors"
    	"fmt"
    	"strconv"
    	"strings"
    	"time"
    
    	xioutil "github.com/minio/minio/internal/ioutil"
    )
    
    const (
    	retryInterval = 3 * time.Second
    )
    
    type logger = func(ctx context.Context, err error, id string, errKind ...interface{})
    
    Registered: 2025-05-25 19:28
    - Last Modified: 2024-09-06 23:06
    - 4.2K bytes
    - Viewed (0)
  9. internal/http/close.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 http
    
    import (
    	"io"
    
    	xioutil "github.com/minio/minio/internal/ioutil"
    )
    
    // DrainBody close non nil response with any response Body.
    // convenient wrapper to drain any remaining data on response body.
    //
    // Subsequently this allows golang http RoundTripper
    Registered: 2025-05-25 19:28
    - Last Modified: 2024-01-18 07:03
    - 1.7K bytes
    - Viewed (0)
  10. cmd/erasure.go

    import (
    	"context"
    	"errors"
    	"fmt"
    	"math/rand"
    	"os"
    	"runtime"
    	"sort"
    	"sync"
    	"time"
    
    	"github.com/minio/madmin-go/v3"
    	"github.com/minio/minio/internal/dsync"
    	xioutil "github.com/minio/minio/internal/ioutil"
    	"github.com/minio/pkg/v3/sync/errgroup"
    )
    
    // list all errors that can be ignore in a bucket operation.
    var bucketOpIgnoredErrs = append(baseIgnoredErrs, errDiskAccessDenied, errUnformattedDisk)
    
    Registered: 2025-05-25 19:28
    - Last Modified: 2024-10-04 22:23
    - 16.1K bytes
    - Viewed (0)
Back to top