Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for diskMap (0.04 sec)

  1. cmd/erasure-sets.go

    func (s *erasureSets) getDiskMap() map[Endpoint]StorageAPI {
    	diskMap := make(map[Endpoint]StorageAPI)
    
    	s.erasureDisksMu.RLock()
    	defer s.erasureDisksMu.RUnlock()
    
    	for i := 0; i < s.setCount; i++ {
    		for j := 0; j < s.setDriveCount; j++ {
    			disk := s.erasureDisks[i][j]
    			if disk == OfflineDisk {
    				continue
    			}
    			if !disk.IsOnline() {
    				continue
    			}
    			diskMap[disk.Endpoint()] = disk
    		}
    	}
    	return diskMap
    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