Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for countOnlineDisks (0.11 sec)

  1. cmd/erasure-object.go

    )
    
    // list all errors which can be ignored in object operations.
    var objectOpIgnoredErrs = append(baseIgnoredErrs, errDiskAccessDenied, errUnformattedDisk, errDiskOngoingReq)
    
    // Object Operations
    
    func countOnlineDisks(onlineDisks []StorageAPI) (online int) {
    	for _, onlineDisk := range onlineDisks {
    		if onlineDisk != nil && onlineDisk.IsOnline() {
    			online++
    		}
    	}
    	return online
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 78.8K bytes
    - Viewed (0)
Back to top