Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for closeStorageDisks (0.09 sec)

  1. cmd/erasure.go

    }
    
    // Shutdown function for object storage interface.
    func (er erasureObjects) Shutdown(ctx context.Context) error {
    	// Add any object layer shutdown activities here.
    	closeStorageDisks(er.getDisks()...)
    	return nil
    }
    
    // defaultWQuorum write quorum based on setDriveCount and defaultParityCount
    func (er erasureObjects) defaultWQuorum() int {
    	dataCount := er.setDriveCount - er.defaultParityCount
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 22:23:33 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  2. cmd/format-erasure.go

    		}, index)
    	}
    
    	// Wait for the routines to finish.
    	return reduceWriteQuorumErrs(ctx, g.Wait(), nil, len(storageDisks))
    }
    
    // relinquishes the underlying connection for all storage disks.
    func closeStorageDisks(storageDisks ...StorageAPI) {
    	var wg sync.WaitGroup
    	for _, disk := range storageDisks {
    		if disk == nil {
    			continue
    		}
    		wg.Add(1)
    		go func(disk StorageAPI) {
    			defer wg.Done()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  3. cmd/erasure-sets.go

    	storageDisks, _ := initStorageDisksWithErrors(s.endpoints.Endpoints, storageOpts{
    		cleanUp:     false,
    		healthCheck: false,
    	})
    
    	defer func(storageDisks []StorageAPI) {
    		if err != nil {
    			closeStorageDisks(storageDisks...)
    		}
    	}(storageDisks)
    
    	formats, sErrs := loadFormatErasureAll(storageDisks, true)
    	if err = checkFormatErasureValues(formats, storageDisks, s.setDriveCount); 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)
Back to top