Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for newStorageAPI (0.15 sec)

  1. cmd/object-api-common.go

    var globalObjectAPI ObjectLayer
    
    type storageOpts struct {
    	cleanUp     bool
    	healthCheck bool
    }
    
    // Depending on the disk type network or local, initialize storage API.
    func newStorageAPI(endpoint Endpoint, opts storageOpts) (storage StorageAPI, err error) {
    	if endpoint.IsLocal {
    		storage, err := newXLStorage(endpoint, opts.cleanUp)
    		if err != nil {
    			return nil, err
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Nov 21 01:09:35 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  2. cmd/erasure-sets.go

    // Initializes a new StorageAPI from the endpoint argument, returns
    // StorageAPI and also `format` which exists on the disk.
    func connectEndpoint(endpoint Endpoint) (StorageAPI, *formatErasureV3, error) {
    	disk, err := newStorageAPI(endpoint, storageOpts{
    		cleanUp:     false,
    		healthCheck: false,
    	})
    	if err != nil {
    		return nil, nil, err
    	}
    
    	format, err := loadFormatErasure(disk, false)
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 27 10:41:37 UTC 2024
    - 37K bytes
    - Viewed (1)
  3. cmd/format-erasure.go

    	storageDisks := make([]StorageAPI, len(endpoints))
    	g := errgroup.WithNErrs(len(endpoints))
    	for index := range endpoints {
    		index := index
    		g.Go(func() (err error) {
    			storageDisks[index], err = newStorageAPI(endpoints[index], opts)
    			return err
    		}, index)
    	}
    	return storageDisks, g.Wait()
    }
    
    // formatErasureV3ThisEmpty - find out if '.This' field is empty
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 23.2K bytes
    - Viewed (0)
Back to top