Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 76 for storageapi (0.26 sec)

  1. cmd/erasure-heal_test.go

    			readers[i] = newBitrotReader(disk, nil, "testbucket", "testobject", shardFilesize, test.algorithm, bitrotWriterSum(writers[i]), erasure.ShardSize())
    		}
    
    		// setup stale disks for the test case
    		staleDisks := make([]StorageAPI, len(disks))
    		copy(staleDisks, disks)
    		for j := 0; j < len(staleDisks); j++ {
    			if j < test.offDisks {
    				readers[j] = nil
    			} else {
    				staleDisks[j] = nil
    			}
    		}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jan 30 20:43:25 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  2. cmd/erasure-healing_test.go

    		Versioned: true,
    	})
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	setDisks := func(newDisks ...StorageAPI) {
    		objLayer.(*erasureServerPools).serverPools[0].erasureDisksMu.Lock()
    		copy(disks, newDisks)
    		objLayer.(*erasureServerPools).serverPools[0].erasureDisksMu.Unlock()
    	}
    	getDisk := func(n int) StorageAPI {
    		objLayer.(*erasureServerPools).serverPools[0].erasureDisksMu.Lock()
    		disk := disks[n]
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 49K bytes
    - Viewed (0)
  3. cmd/erasure-server-pool.go

    }
    
    // GetDisksID will return disks by their ID.
    func (z *erasureServerPools) GetDisksID(ids ...string) []StorageAPI {
    	idMap := make(map[string]struct{})
    	for _, id := range ids {
    		idMap[id] = struct{}{}
    	}
    	res := make([]StorageAPI, 0, len(idMap))
    	for _, s := range z.serverPools {
    		for _, set := range s.sets {
    			for _, disk := range set.getDisks() {
    				if disk == OfflineDisk {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 30 11:58:12 UTC 2024
    - 82.5K bytes
    - Viewed (0)
  4. cmd/erasure-encode_test.go

    package cmd
    
    import (
    	"bytes"
    	"context"
    	"crypto/rand"
    	"io"
    	"testing"
    
    	"github.com/dustin/go-humanize"
    )
    
    type badDisk struct{ StorageAPI }
    
    func (a badDisk) String() string {
    	return "bad-disk"
    }
    
    func (a badDisk) AppendFile(ctx context.Context, volume string, path string, buf []byte) error {
    	return errFaultyDisk
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jan 30 20:43:25 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  5. cmd/object-api-interface.go

    	CompleteMultipartUpload(ctx context.Context, bucket, object, uploadID string, uploadedParts []CompletePart, opts ObjectOptions) (objInfo ObjectInfo, err error)
    
    	GetDisks(poolIdx, setIdx int) ([]StorageAPI, error) // return the disks belonging to pool and set.
    	SetDriveCounts() []int                              // list of erasure stripe size for each pool in order.
    
    	// Healing operations.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon May 06 20:27:52 UTC 2024
    - 17K bytes
    - Viewed (0)
  6. cmd/data-scanner.go

    	healObjectSelect      uint32 // Do a heal check on an object once every n cycles. Must divide into healFolderInclude
    	scanMode              madmin.HealScanMode
    
    	weSleep func() bool
    
    	disks       []StorageAPI
    	disksQuorum int
    
    	// If set updates will be sent regularly to this channel.
    	// Will not be closed when returned.
    	updates    chan<- dataUsageEntry
    	lastUpdate time.Time
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:43:17 UTC 2024
    - 47.6K bytes
    - Viewed (0)
  7. cmd/storage-rest-client.go

    	case strings.Contains(err.Error(), "server closed idle connection"):
    		return true
    	}
    
    	return false
    }
    
    // Converts network error to storageErr. This function is
    // written so that the storageAPI errors are consistent
    // across network disks.
    func toStorageErr(err error) error {
    	if err == nil {
    		return nil
    	}
    
    	if isNetworkError(err) {
    		return errDiskNotFound
    	}
    
    	switch err.Error() {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  8. cmd/test-utils_test.go

    func initObjectLayer(ctx context.Context, endpointServerPools EndpointServerPools) (ObjectLayer, []StorageAPI, error) {
    	objLayer, err := newTestObjectLayer(ctx, endpointServerPools)
    	if err != nil {
    		return nil, nil, err
    	}
    
    	var formattedDisks []StorageAPI
    	// Should use the object layer tests for validating cache.
    	if z, ok := objLayer.(*erasureServerPools); ok {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 76.9K bytes
    - Viewed (0)
  9. cmd/object-api-utils.go

    	}
    }
    
    // getDiskInfos returns the disk information for the provided disks.
    // If a disk is nil or an error is returned the result will be nil as well.
    func getDiskInfos(ctx context.Context, disks ...StorageAPI) []*DiskInfo {
    	res := make([]*DiskInfo, len(disks))
    	opts := DiskInfoOptions{}
    	for i, disk := range disks {
    		if disk == nil {
    			continue
    		}
    		if di, err := disk.DiskInfo(ctx, opts); err == nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 11 03:13:30 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  10. cmd/xl-storage.go

    	}
    
    	if runtime.GOOS == "windows" {
    		// Volname shouldn't have reserved characters in Windows.
    		return !strings.ContainsAny(volname, `\:*?\"<>|`)
    	}
    
    	return true
    }
    
    // xlStorage - implements StorageAPI interface.
    type xlStorage struct {
    	// Indicate of NSScanner is in progress in this disk
    	scanning int32
    
    	drivePath string
    	endpoint  Endpoint
    
    	globalSync bool
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 85.3K bytes
    - Viewed (0)
Back to top