Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 39 for StorageAPI (0.64 sec)

  1. cmd/erasure-metadata.go

    }
    
    func writeAllMetadata(ctx context.Context, disks []StorageAPI, origbucket, bucket, prefix string, files []FileInfo, quorum int) ([]StorageAPI, error) {
    	return writeAllMetadataWithRevert(ctx, disks, origbucket, bucket, prefix, files, quorum, true)
    }
    
    // writeUniqueFileInfo - writes unique `xl.meta` content for each disk concurrently.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 21.3K bytes
    - Viewed (0)
  2. cmd/peer-s3-server.go

    				Name:    v.Name,
    				Deleted: v.Created,
    			})
    		}
    		return true
    	})
    
    	return buckets, nil
    }
    
    func cloneDrives(drives map[string]StorageAPI) []StorageAPI {
    	copyDrives := make([]StorageAPI, 0, len(drives))
    	for _, drive := range drives {
    		copyDrives = append(copyDrives, drive)
    	}
    	return copyDrives
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  3. cmd/erasure_test.go

    	parityBlocks int
    	blockSize    int64
    	diskPaths    []string
    	disks        []StorageAPI
    }
    
    // Returns an initialized setup for erasure tests.
    func newErasureTestSetup(tb testing.TB, dataBlocks int, parityBlocks int, blockSize int64) (*erasureTestSetup, error) {
    	diskPaths := make([]string, dataBlocks+parityBlocks)
    	disks := make([]StorageAPI, len(diskPaths))
    	var err error
    	for i := range diskPaths {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Apr 09 14:28:39 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  4. cmd/erasure-metadata-utils_test.go

    // Tests caclculating disk count.
    func TestDiskCount(t *testing.T) {
    	testCases := []struct {
    		disks     []StorageAPI
    		diskCount int
    	}{
    		// Test case - 1
    		{
    			disks:     []StorageAPI{&xlStorage{}, &xlStorage{}, &xlStorage{}, &xlStorage{}},
    			diskCount: 4,
    		},
    		// Test case - 2
    		{
    			disks:     []StorageAPI{nil, &xlStorage{}, &xlStorage{}, &xlStorage{}},
    			diskCount: 3,
    		},
    	}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  5. cmd/bitrot.go

    	return
    }
    
    func newBitrotWriter(disk StorageAPI, origvolume, volume, filePath string, length int64, algo BitrotAlgorithm, shardSize int64) io.Writer {
    	if algo == HighwayHash256S {
    		return newStreamingBitrotWriter(disk, origvolume, volume, filePath, length, algo, shardSize)
    	}
    	return newWholeBitrotWriter(disk, volume, filePath, algo, shardSize)
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Feb 26 19:26:13 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  6. cmd/metacache-set.go

    				commonCount = ops
    			}
    		}
    		if maxCnt < readQuorum {
    			return 0
    		}
    		return commonCount
    	}
    
    	return filter()
    }
    
    func getQuorumDiskInfos(disks []StorageAPI, infos []DiskInfo, readQuorum int) (newDisks []StorageAPI, newInfos []DiskInfo) {
    	commonMutations := calcCommonCounter(infos, readQuorum)
    	for i, info := range infos {
    		mutations := info.Metrics.TotalDeletes + info.Metrics.TotalWrites
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 30.7K bytes
    - Viewed (0)
  7. cmd/storage-interface.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"context"
    	"io"
    	"time"
    
    	"github.com/minio/madmin-go/v3"
    )
    
    // StorageAPI interface.
    type StorageAPI interface {
    	// Stringified version of disk.
    	String() string
    
    	// Storage operations.
    
    	// Returns true if disk is online and its valid i.e valid format.json.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Apr 25 05:41:04 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  8. cmd/erasure-object.go

    	return objInfo, wquorum, nil
    }
    
    // Similar to rename but renames data from srcEntry to dstEntry at dataDir
    func renameData(ctx context.Context, disks []StorageAPI, srcBucket, srcEntry string, metadata []FileInfo, dstBucket, dstEntry string, writeQuorum int) ([]StorageAPI, []byte, string, error) {
    	g := errgroup.WithNErrs(len(disks))
    
    	fvID := mustGetUUID()
    	for index := range disks {
    		metadata[index].SetTierFreeVersionID(fvID)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Sep 07 16:13:09 UTC 2025
    - 80.4K bytes
    - Viewed (0)
  9. cmd/erasure-healing.go

    	}
    
    	return nil
    }
    
    // listAllBuckets lists all buckets from all disks. It also
    // returns the occurrence of each buckets in all disks
    func listAllBuckets(ctx context.Context, storageDisks []StorageAPI, healBuckets *xsync.MapOf[string, VolInfo], readQuorum int) error {
    	g := errgroup.WithNErrs(len(storageDisks))
    	for index := range storageDisks {
    		g.Go(func() error {
    			if storageDisks[index] == nil {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 34.6K bytes
    - Viewed (0)
  10. cmd/naughty-disk_test.go

    type naughtyDisk struct {
    	// The real disk
    	disk StorageAPI
    	// Programmed errors: API call number => error to return
    	errors map[int]error
    	// The error to return when no error value is programmed
    	defaultErr error
    	// The current API call number
    	callNR int
    	// Data protection
    	mu sync.Mutex
    }
    
    func newNaughtyDisk(d StorageAPI, errs map[int]error, defaultErr error) *naughtyDisk {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Apr 25 05:41:04 UTC 2025
    - 10.1K bytes
    - Viewed (0)
Back to top