Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 96 for xioutil (0.16 sec)

  1. internal/store/store.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package store
    
    import (
    	"context"
    	"errors"
    	"fmt"
    	"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{})
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 25 16:44:20 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  2. cmd/speedtest.go

    package cmd
    
    import (
    	"context"
    	"fmt"
    	"net/url"
    	"runtime"
    	"sort"
    	"time"
    
    	"github.com/minio/dperf/pkg/dperf"
    	"github.com/minio/madmin-go/v3"
    	xioutil "github.com/minio/minio/internal/ioutil"
    )
    
    const speedTest = "speedtest"
    
    type speedTestOpts struct {
    	objectSize       int
    	concurrencyStart int
    	concurrency      int
    	duration         time.Duration
    	autotune         bool
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Jan 28 18:04:17 GMT 2024
    - 9K bytes
    - Viewed (0)
  3. cmd/service.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"context"
    	"os"
    	"os/exec"
    	"runtime"
    	"syscall"
    
    	xioutil "github.com/minio/minio/internal/ioutil"
    )
    
    // Type of service signals currently supported.
    type serviceSignal int
    
    const (
    	serviceRestart       serviceSignal = iota // Restarts the server.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Feb 28 07:02:14 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  4. cmd/metacache-walk.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"context"
    	"io"
    	"sort"
    	"strings"
    
    	"github.com/minio/minio/internal/grid"
    	xioutil "github.com/minio/minio/internal/ioutil"
    	"github.com/valyala/bytebufferpool"
    )
    
    //go:generate msgp -file $GOFILE
    
    // WalkDirOptions provides options for WalkDir operations.
    type WalkDirOptions struct {
    	// Bucket to scanner
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  5. cmd/xl-storage.go

    	}
    
    	var bufp *[]byte
    	switch {
    	case fileSize <= xioutil.SmallBlock:
    		bufp = xioutil.ODirectPoolSmall.Get().(*[]byte)
    		defer xioutil.ODirectPoolSmall.Put(bufp)
    	default:
    		bufp = xioutil.ODirectPoolLarge.Get().(*[]byte)
    		defer xioutil.ODirectPoolLarge.Put(bufp)
    	}
    
    	var written int64
    	if odirectEnabled {
    		written, err = xioutil.CopyAligned(diskHealthWriter(ctx, w), r, *bufp, fileSize, w)
    	} else {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  6. cmd/storage-rest-server.go

    }
    
    func (c *closeNotifier) Read(p []byte) (n int, err error) {
    	n, err = c.rc.Read(p)
    	if err != nil {
    		if c.done != nil {
    			xioutil.SafeClose(c.done)
    			c.done = nil
    		}
    	}
    	return n, err
    }
    
    func (c *closeNotifier) Close() error {
    	if c.done != nil {
    		xioutil.SafeClose(c.done)
    		c.done = nil
    	}
    	return c.rc.Close()
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 44.8K bytes
    - Viewed (0)
  7. 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/v2/sync/errgroup"
    )
    
    // list all errors that can be ignore in a bucket operation.
    var bucketOpIgnoredErrs = append(baseIgnoredErrs, errDiskAccessDenied, errUnformattedDisk)
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 16K bytes
    - Viewed (1)
  8. cmd/handler-api.go

    		// Returns 75% of max memory allowed
    		maxMem := availableMemory()
    
    		// max requests per node is calculated as
    		// total_ram / ram_per_request
    		blockSize := xioutil.LargeBlock + xioutil.SmallBlock
    		if legacy {
    			// ram_per_request is (1MiB+32KiB) * driveCount \
    			//    + 2 * 10MiB (default erasure block size v1) + 2 * 1MiB (default erasure block size v2)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 10K bytes
    - Viewed (0)
  9. cmd/warm-backend-gcs.go

    	"io"
    	"net/http"
    
    	"cloud.google.com/go/storage"
    	"github.com/minio/madmin-go/v3"
    	"google.golang.org/api/googleapi"
    	"google.golang.org/api/iterator"
    	"google.golang.org/api/option"
    
    	xioutil "github.com/minio/minio/internal/ioutil"
    )
    
    type warmBackendGCS struct {
    	client       *storage.Client
    	Bucket       string
    	Prefix       string
    	StorageClass string
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  10. internal/s3select/select.go

    	"io"
    	"net/http"
    	"strings"
    	"sync"
    
    	"github.com/klauspost/compress/s2"
    	"github.com/klauspost/compress/zstd"
    	gzip "github.com/klauspost/pgzip"
    	"github.com/minio/minio/internal/config"
    	xioutil "github.com/minio/minio/internal/ioutil"
    	"github.com/minio/minio/internal/s3select/csv"
    	"github.com/minio/minio/internal/s3select/json"
    	"github.com/minio/minio/internal/s3select/parquet"
    	"github.com/minio/minio/internal/s3select/simdj"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Nov 06 22:26:08 GMT 2023
    - 21K bytes
    - Viewed (0)
Back to top